Is it possible to reload a page that was loaded thru link_to_remote? I'm doing this in my controller:
def create
if captchas_verified
do_something
else
render :action=>'new'
end
But when the captchas is wrong, it do not render a form that is inside of the new template. By the way, in the webserver log, it shows that the templades was rendered.
Thanks!
UPDATED: Today i changed the render to:
render(:update) { |page| page.call 'location.reload' }
But it makes me update the page that called the link_to_remote not the page that was opened thru the link_to_remote
UPDATED 2: I fixed using page.replace_html "mydiv", :partial => "new" instead of page.call 'location.reload'