search for: fields_with_error

Displaying 1 result from an estimated 1 matches for "fields_with_error".

Did you mean: fields_with_errors
2013 Sep 19
0
CRUD model in a bootstrap modal with jquery, ajax - best practice
...dit_person_32" method="post"> if there is an error in the form, i do render_to_string(form_partial) inside the controller and respond with this inside of the json response. Now i have the partial html inside of the json object. I do this, to get the rails error messages and fields_with_errors. Is there a better way to do it? all the mix between script and json format and the partial html inside the json doesn''t feel right. This is the ajax for the form submit: $(''#dialog'').on(''submit'', -> $(this).find(''form'...