I have a bit of code 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]
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
value from the params[:monitor_pref]. However, if I uncomment
then it is saved.
Why doesn’t the @current_festival.save_with_validation(false) not save
monitor preferences? FYI, the @current_festival.save… IS saving other
values in this method correctly, and I have validation set to false
not all required fields are completed at this point.
If anyone can tell me why this save is not happening, I would be