Hi there,
Suppose: 'action A' was launched by an Ajax request
Question: Is it possible to - somehow render a whole HTML page (not only return a part of the page), or - redirect (within 'action A') to an 'action B' (which then could render a whole HTML page)
Thanks a lot! Tom
Question: Is it possible to - somehow render a whole HTML page (not only return a part of the page),
render :update do |page| page.redirect_to :action => 'name' end
Sijo
And I'd been starting to think I had to call McGyver...
Great! Thanks, Sijo!
You can return an entire HTML page via ajax (Just the contents of the <body> tags) and just replace that.
If you're going to redirect, don't bother with the Ajax
Andrew Timberlake http://ramblingsonrails.com
http://MyMvelope.com - The SIMPLE way to manage your savings