search for: monitorpreference

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

Did you mean: monitor_preference
2006 Jul 25
1
save trouble with has_many belongs_to relationship
...ode in a controller that looks like this: @current_festival.monitor_preferences.each do |pref| if pref.user_id == @me.id pref.preference = params[:monitor_pref] #pref.save end end @current_festival.save_with_validation(false) the Festival class has_many :monitor_preferences the MonitorPreference class belongs_to :festival In the configuration above, the monitor_preference is not saved with the new value from the params[:monitor_pref]. However, if I uncomment pref.save, then it is saved. Why doesn''t the @current_festival.save_with_validation(false) not save the monitor preferen...