search for: contentblock

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

Did you mean: content_block
2007 Oct 18
4
Polymorphic Association?
...a series of Content Blocks. The Content Blocks act as a list relative to the Content Page. And each Content Block can be assigned one of 3 types of content: TextContent, ImageContent, or FileContent. So my current thinking is this: ContentPage has_many :content_blocks, :order => :position ContentBlock belongs_to :content_page acts_as_list :scope => content_page_id has_one :text_content has_one :image_content has_one :file_content TextContent belongs_to :content_block ImageContent belongs_to :content_block FileContent belongs_to :content_block But when I envision looking up...