fieldWithErrors - does not work

What conditions must be met for ‘fieldWithErrors’ automatic wrapping?

<% remote_form_for( :subscriber,
:update => ‘subscription’,
:url => {:controller => ‘subscribers’, :action =>
‘subscribe’}
) 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!

Are’nt you using ajax for submitting the form data. Error messages have
to go in an rjs file.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs