i don’t even know if this is possible, so I’ll just ask.
say I have a remote form. the form data gets submitted to the backend
AJAX. if there is a validation error in the form, i handle that on the
side. however, if the form validates, I’d like to redirect the browser
different page. Will a redirect_to work with an AJAX call or do I have
handle that a special way?
class AjaxController < ApplicationController::Base
#validate the form data
redirect_to :controller => “xyz”, :action => “abc” and return if
# otherwise, render the rjs template