search for: content_page

Displaying 4 results from an estimated 4 matches for "content_page".

2006 May 08
4
Tables names with model classes in seperate modules
I have a module that deals with content pages and categories in my application so create following tables: content_pages content_categories Obviously I need a Page and Category module to map to these tables, but in order to avoid conflicts with other Category classes, i declare my model classes like this: Content::Page Content::Category Now, that''s all fine - except that my models are still looking for...
2007 Oct 18
4
Polymorphic Association?
...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 a Content Page and its ass...
2007 Sep 10
2
IO errors with 2 processes
Hi All, I''m using acts as ferret and getting a lot of these errors: ---- Error occured in fs_store.c:324 - fs_open_input couldn''t create InStream /var/rails/projectblue/website/public/../config/../index/production/content_page/_347i.fdt: <No such file or directory> ---- and also some of these errors: ---- uninitialized constant Ferret::Index::Index::LockError [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/dependencies.rb:477:in `const_missing'' ---- Now I''ve got a daemon I''...
2006 Feb 16
10
Confused over Model attrbutes and @ prefix
I''m confused about how attributes work in models. For example: class Page < ActiveRecord::Base attr_accessor :body def foo id # works @id # won''t work IIRC body # won''t work @body #works end end Why doesn''t everything work the same? Joe -- Posted via http://www.ruby-forum.com/.