Hello, I try to create javascript client side form validation for rails models and I don't wont to duplicate error messages in language yml files (one for models and one for javascript). I wont for example to generate json object with list of all available error messages for some active record rails model. Is there any way to get these error messages before I validate model. In rails documentation model.errors is available after validation in order to display them with javascript before form is submitted and values is attached to model and model is validated. I want to display error to the user before form submittion. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/34d225e0-9a54-43bd-b172-6d97aeb812ea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.