Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

alborz
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
alborz
Full Stack JavaScript Techdegree Graduate 30,885 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
.a{fill-rule:evenodd;}techdegree
Milo Winningham
Web Development Techdegree Student 3,317 Points

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.