search for: thumbnail_id

Displaying 1 result from an estimated 1 matches for "thumbnail_id".

2008 Feb 11
1
image_tag is it just plain Broken?
I''m trying <%= link_to image_tag("#{gallery.link_to}"), gallery_path(gallery) unless gallery.thumbnail_id == 0%> and get the error: ActionView::TemplateError (undefined method `image_tag'' for #<Gallery: 0xb7083be4>) on line #23 of app/views/users/index.rhtml This is my definition of link_to def link_to unless self.thumbnail_id == 0 picture = Picture.find(self.thumbnail_id...