search for: hatbm

Displaying 3 results from an estimated 3 matches for "hatbm".

Did you mean: habtm
2006 Aug 14
0
Save fails due to HATBM relationship... but only if not saved before?
...gt;> @group.save! => true >> @group.managers << User.find(1) => [#<User:0x40b55830>] >> @group.save! => true What could be causing this? Has anybody ran into this problem before? Thanks! -- View this message in context: http://www.nabble.com/Save-fails-due-to-HATBM-relationship...-but-only-if-not-saved-before--tf2101944.html#a5792638 Sent from the RubyOnRails Users forum at Nabble.com.
2006 Feb 02
3
acts_as_family_tree
For a project that I am working on I need to have a family tree. This means that instead of having one parent each item has at most two. As far as I know acts_as_tree only allows one parent_id. Any suggestions on how to make a "acts_as_family_tree" ? Thanks, Mark -- -------------------------------------------------------------------- I am Mark Daggett and I approve this message.
2007 Dec 04
5
when to save, session reflect saves?
I am trying to clean up unnecessary lines (even as I hack my way forward adding more garbage) I have two questions on lines I have trying to keep the database and session info reflecting changes: def associate_pupil_to_teacher @teacher = session[:teacher] @pupil = Pupil.find(params[:id]) @teacher.pupils << @pupil @teacher.save #Q1 session[:teacher] = @teacher #Q2 end #Q1 do i