Thanks for your (actually super-quick) reply, Fred!

To paraphrase it (correct me if I'm wrong):

Whenever an Ajax request is sent (i.e. using submit_to_remote) the 
"rendering part" in the controller can NOT use "redirect_to :action => 
..." or "render :action => ...".

Rendering the response can in this case only be done using:

render :update do |page|
  page.replace_html 'whatever', :partial => 'whatever'
end

"redirect_to" and "render" can only be used after "regular" requests.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to