Forum: Ruby on Rails fieldWithErrors - does not work

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
520373e1a8d7a368c45c3a430832063d?d=identicon&s=25 Qertoip (Guest)
on 2007-01-13 08:43
What conditions must be met for 'fieldWithErrors' automatic wrapping?

<% remote_form_for( :subscriber,
                   :update => 'subscription',
                   :url => {:controller => 'subscribers', :action =>
                   ) do |form| %>
    <%= form.text_field :email, options = { :style => "width: 150px;" }
    <%= submit_tag "Wyślij", options = { :class => "submit" } %>
<% end %>

The above does not wrap email field with fieldWithErrors on error. Is it
problem with remote_form_for helper?

Thanks in advance!
7b9246a497c938a6eeccae6e5cb08863?d=identicon&s=25 Guest (Guest)
on 2007-01-26 13:35
Are'nt you using ajax for submitting the form data.  Error messages have
to go in an rjs file.
This topic is locked and can not be replied to.