Hey,
A noob question no doubt but when I use form_remote_tag to make an
AJAX call to the server I can't make it redirect to re-render the
entire page.
So for example the below code from /controller/index.html.erb invokes
the call...
<% form_remote_tag :url => {:action => :foo} do %>
...form stuff...
<%= submit_tag "Submit" %>
<% end %>
And then a redirect from add_to_cart won't work...
def foo
redirect_to :action => :index
end
Any thoughts?
Cheers!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---