Topic: request.xhr?
Hi all. I am using RJS in my RoR application, and I have the following problem. In order to protect the pages I have set up this method in the ApplicationController:
before_filter :check_access
def check_access
unless request.xhr?
redirect_to(:controller => '/main')
return
end
end
I have put this method in the ApplicationController because I want all controllers to be protected so I won