method
full_messages
rails latest stable - Class:
ActiveResource::Errors
full_messages()public
Returns all the full error messages in an array.
Examples
my_person = Person.new(params[:person]) my_person.errors.add('login', 'can not be empty') if my_person.login == '' my_person.errors.add('password', 'can not be empty') if my_person.password == '' messages = '' my_person.errors.full_messages.each {|msg| messages += msg + "<br/>"} messages # => "Login can not be empty<br />Password can not be empty<br />"