Displaying 1 result from an estimated 1 matches for "primary_pictur".
Did you mean:
primary_picture
2006 Apr 02
7
RANT: belongs_to -> refers_to
...ails (stored with file_column) and Textile fields.
I start out with
class Item < ActiveRecord::Base
:has_many :pictures
end class
But I want one of those pictures to be featured as the gallery photo. So,
naturally, I gravitate towards adding
class Item < ActiveRecord::Base
:has_one primary_picture, :class_name => ''Picture''
end
I am encouraged in this futile pursuit by the docs, which I quickly skim to
see things like
:has_one :last_comment, :class_name => "Comment", :order => "posted_on"
Of course, in the light of day, it''s clear...