Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

alborz
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
alborz
Full Stack JavaScript Techdegree Graduate 30,884 Points

When using Carrierwave gem in app, photos display but are too small

Hi! I'm working on an app that uses Carrierwave for uploading photos, but when I show the submitted post with the photo the photo is too small. How can I fix this?

Here is the link to my app: https://github.com/amesbahi/travel_log

Thanks.

1 Answer

Milo Winningham
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Milo Winningham
Treehouse Staff

In your template, I see you're using @article.image.thumb to get the image URL. This corresponds to the version :thumb block in the ImageUploader, which defines the size as 50x50.

If you'd like to use the full size image, you could use @article.image instead. Otherwise, you can change the size of your thumbnails or define another image size in your uploader.