This will probably be an easy one as I must be overlooking something
obvious. I’m trying to set up a helper method that file find the first
photo belonging to a product ( photo.sort should == 1).
Photo.find(:first, :conditions => [“photo_id = ?”, id], :sort =>
This helper is in products_helper.rb. It needs to be used in filecolumn
to pull up the appropriate image
<%= image_tag url_for_file_column(product_list_photo(product.id),
For whatever reason I keep getting an undefined variable or method
error. Am I doing something really obvious wrong?