search for: postgradtraining

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

2006 Jun 15
1
callback object problem
...> Date.today model.errors.add(:end_date, "must be before today") end end if !model.end_date.nil? if model.end_date < model.start_date model.errors.add(:end_date, "must be later than start date") end end end end app/models/address_history.rb class PostgradTraining < ActiveRecord::Base before_validation DateCallbacks.new .... end the error i get is: Callbacks must be a symbol denoting the method to call, a string to be evaluated, a block to be invoked, or an object responding to the callback method. thanks for any help, Nate -- Posted via h...