search for: trainingev

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

Did you mean: training
2005 Dec 30
2
before_create question
...ess event.can_still_register? end end The weird thing is, if the registration deadline has passed, the error gets added to the registration object, and calling save! throws no exception, but the registration object doesn''t get saved. So, this test code throws no exception: event = TrainingEvent.new :start_date => 19.days.from_now, :end_date => 22.days.from_now, :capacity => 10 reg = Registration.create :training_event => event, :user => @bob, :role => @community_director, :program_number => '&...