search for: section_cont

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

Did you mean: section_count
2006 May 28
1
ActiveRecord: FK constraints problem
...rails can''t determine that relation exists and can''t remove records from join-table transparently... Please tell me what I must define to got happiness? I think I should create another model like SectionContent and make relation like ''has_many :contents, :through => :section_contents''... Is there another way? Thanks in advance. CREATE TABLE sections ( id serial NOT NULL, parent_id integer, default_content_id integer ); CREATE TABLE contents ( id serial NOT NULL, alias character varying(32) NOT NULL, name character varying(64) NOT NULL,...
2006 Feb 24
4
Any way to pass state to a component?
I am trying set up a rails app that utilizes components. I need to be able to pass some state (a bunch of name value pairs) from the Main controller to the component. Is there any way to pass this state info using render_component? Regards -- Posted via http://www.ruby-forum.com/.