search for: thumbnail_image

Displaying 2 results from an estimated 2 matches for "thumbnail_image".

2006 May 30
1
Can''t read from file field second time around
...tion but then fails with: zero-length blob not permitted `'' On the line: img = Magick::Image.from_blob(self.image).first I am basically doing this in the controller and it fails on the second attempt - to resize and save the medium size image: if @params[:listing_image] @thumbnail_image = ListingImage.new(@params[:listing_image]) @listing = @session[:listing] @thumbnail_image.listing_id = @listing.id @thumbnail_image.image_type = "thumb" @thumbnail_image.resize if @thumbnail_image.save! @med_image = ListingImage.new(@par...
2010 Oct 15
18
Newbie - Rails 3 lightbox?
Hello! I''m trying to create a simple image "popup" effect using Lightbox2, http://www.huddletogether.com/projects/lightbox2/. But I don''t get it to work. My code looks lite this: <span class="ad_image"> <a href="<%= ad.image.url(:thumb) %>" rel="lightbox"><img src="<%= ad.image.url(:thumb) %>"