search for: remote_format_for

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

Did you mean: remote_form_for
2008 Mar 06
0
flash[:notice] with remote_format_for
This has been asked before but I didn''t find an elegant solution. How do you display validations errors when you''re doing a remote_format_for (or in my case form_for with UJS) This is what I came up with in the partial but there was to be a more elegant solution also this displays the field names with underscores, the flash[:notice] way seems to display cleaned up business named <% @user.errors.each do |key,value| %> <%= key %...