Welcome to the Treehouse Community
Looking to learn something new?
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
Milo WinninghamTreehouse 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.