Hi guys,

Is this possible? I have an action triggered off as JS, which i respond to 
appropriately, but sometimes, the request fails at which point I'd like to 
change to respond_to format to html so that I can redirect to a thank you 
page. So far I've tried: 

redirect_to(thank_you_path, format: 'html') and return if 
@next_question.nil?

but this still tries to redirect it as a js response, which of course 
fails......is there anyway I can convert a JS request to an HTML response? 

Thanks for your help!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/a613dbc5-fe5b-45b0-b72f-a05cb8b93840%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to