search for: record_invalid

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

2011 Sep 01
2
Custom ActiveRecord Error Message
...Record class RecordInvalid def initialize(record) @record = record errors = @record.errors.full_messages.join( I18n.t(''support.array.words_connector'', :default => '', '') ) super(I18n.t(''activerecord.errors.messages.record_invalid'', :errors => "model class: #{record.class}: #{errors}")) end end end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send...