about 5 years ago
how to implement thumbnail for image in rails.
go to uploader inside views where you have written image uploader code for uploading image. uncomment this section
#Create different versions of your uploaded files:
version :thumb do
process :resize_to_fit => [50, 50]
And after uncommenting this implement include minimagick for your image uploader.
now you have to define thumbnail object in the views where you are rendering the image.
<%= image_tag (category.category_image.thumb) if category.category_image? %>
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using