Forum: Ruby on Rails Ajax on failure message

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Tyl T. (Guest)
on 2008-11-14 22:34
(Received via mailing list)
How do i change the ajax failure message

  <% remote_form_for(:comment, :url => grocery_comments_path(params
[:id]),
:html => { :id => 'new_comment_form' }, :method => :post, :update =>
{ :failure => "error" }) do |form| %>

the :update => { :failure => "error" }

gives me the usual error messages inside the <div id="error"> </div>

How do i change this error message to a string?
This topic is locked and can not be replied to.