Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3: Show validation errors for simple_form with ajax

I am using rails3 with simple_form gem and :remote=>true (ajax).

How to I show validation error with :remote=>true?

Thanks

like image 502
fabian Avatar asked May 15 '11 18:05

fabian


1 Answers

Use the javascript rails callbacks to do this.

See how do this here: http://www.simonecarletti.com/blog/2010/06/unobtrusive-javascript-in-rails-3/

like image 110
rafaelfranca Avatar answered Oct 26 '22 09:10

rafaelfranca