Hi,

I have non-model custom validation for a data input to a certain
remote_form_tag view. I'd like to have differential responses in the
controller in the following cases:

1) when remote_form_tag post results fail validation, the form view is
updated from the controller, as by the following:

      render :update do |page|
         page.replace_html 'errors', :partial => "iod_errors"
      end

2) when the remote_form_tag post results passes validation, the
controller redirects to another action or view, as in the following:

      redirect_to passed_validation_url

Unfortunately, using the following simple parameterization of
form_remote_tag,

     <% form_remote_tag :url=>create_iod_url do %>
           ...

I am succesful in my case 1), but nothing happens at all in my case
2).

Any suggestions?

Thanks,

Lille

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to