Hello list, I was thinking that could be nice to be able to know which assertion failed during validation in an unique way (like knowing the validation name like ''length'',''presence'' and so on) to don''t rely on string matching which can easily lead to errors. I''m actually doing such things duplicating the checks, one for the user/form and one for the api that actually are returning different error codes depending on the error. To me having these things in two places is a duplicate and could be easily merged by adding to the validation error the validation that failed. What you guys think? Best regards -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. For more options, visit https://groups.google.com/groups/opt_out.