search for: thumbnail_url

Displaying 3 results from an estimated 3 matches for "thumbnail_url".

2006 Jul 31
1
Grouping arrays in the View
I remember reading something awhile back about an easy way to work with object arrays in views. Say I want to arrange 20 images objects in rows of 3. I have a collection of @users, where each user has a user.thumbnail_url image. Is there some way to split these up so that they can be easily parsed in rows of three? Thanks, Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060731/1ecb139b/attachment.html
2006 Apr 24
0
ImageMagick and EXIF Data
...ibute("file_size", file_data.size) end def url path.sub(/^public/,'''') end def to_url return DISPLAYTHUMBS_DIRECTORY + "#{self.id}-thumb.jpg" end def to_large_url return DISPLAY_DIRECTORY + "#{self.id}-full.jpg" end def thumbnail_url thumbnail_path.sub(/^public/,'''') end def path File.join(DIRECTORY, "#{self.id}-full.jpg") end def thumbnail_path File.join(THUMBDIRECTORY, "#{self.id}-thumb.jpg") end def self.display_all_images find(:all, :order => "...
2005 Oct 18
3
hand writing sql for eager loading of thumbnails
...product 2. For each Image get a link to the smallest thumbnail 64px x 64px and link to it. 3. List all thumbnails related to an image I figure I need to 3 things: 1. Select images related to a product 2. JOIN my each image to it''s related small thumbnail giving me something like: image.thumbnail_url 3. JOIN all thumbnails to their related images so I can use @image.thumbnails Other wise I''m running N+1 queries to try and achieve a similar result. I''ll take any advice, even if it''s that I''m going about this completely the wrong way! Cheers, Graham