Can I reload a page loaded via link_to_remote? I do this in my controller:
def create if captchas_verified do_something else render :action=>'new' end
But when captchas is wrong, it does not display the form that is inside the new template. By the way, in the web server log it shows that the temp has been visualized.
Thanks!
UPDATED: Today I changed the render to:
render(:update) { |page| page.call 'location.reload' }
But it makes me refresh the page called link_to_remote, not the page that was opened via link_to_remote
UPDATED 2: I fixed the use of page.replace_html "mydiv" ,: partial => "new" instead of page.call 'location.reload'
source share