# File app/models/person.rb, line 134 def register_for(conf) conf = Conference.find(conf) if conf.is_a?(Fixnum) if conf.accepts_registrations? self.conferences << conf return true end #### Check this over: #### It does not work as it is (i.e. it fails but does not send the #### error message) self.errors.add(:conferences, _('Registrations for this conference are closed')) false end