search for: contentobject

Displaying 2 results from an estimated 2 matches for "contentobject".

2006 Apr 07
1
how to map one-to-one relation to two tables
hi. iv got a problem with one-to-one relation with AR. let''s say I need this classes: class ContentObject < ActiveRecord::Base class BlogEntry < ContentObject class FotoEntry < ContentObject i.e. Blog and Foto entries must extend ContentObject. Also they must be mapped to separate tables. I can not figure out how to map this kind of association better? The most dumb and straitforward way i...
2008 Mar 28
0
Problems with URL encoding
..._remote. My link code: <%= link_to_remote "Remove", :url => object_relation_path( :id => 0, :object_relation => { :parent_id => @product.id, :parent_type => "Product", :child_id => content_object.id, :child_type => "ContentObject", :relation_type_id => 1000 }, :format => :partial, :response_template => "products/#{@product.product_type}/show/ partials/related_content"), :update => "related_content_wrapper", :method => :delete %> I think this is a correct sett...