Hello, Is it possible to replace redirect_to: inside an action with link_to_remote: ? I am using LoginSystem to handle my logins, and the default behavior is to 302 redirect to /controller/login on a restricted controller. However a 302 is breaking my site since i need to use partials with AJAX. Is this possible ? thanks adam
Hi Adam, I suggest you edit the login_required before filter to make it ajax-aware. You might try something such as: def login_required return if logged_in? if request.xhr? then render :partial => ''shared/login_link'' else redirect_to login_url end return false # to cancel further processing end