How to identify which validates rule is violated in model

Hi,

I have several validates_…_of rules in the model. Is there a way to
identify which rule is broken when I’d like to return more than error
messages to the view?

Thanks,

Hi Ianne,

Benjamin had a good post on the ROR blog that you might find useful:

http://www.rubyonrailsblog.com/articles/2006/09/30/overriding-activerecord-error-methods

Cheers,
Starr

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs