I am totally new to Ajax. I am trying to use ajax in my project. Its
working fine, I am getting problem while session time expires. If
session expires means i am redirecting to login page.Onclick i am
calling on ajax function. It will goto controller and it will check the
session if session expires then it has to goto login page.
Your "session_expired" filter should check if this is an xhr request, if
return unless session expired?
flash[:notice] = "Your session expired"
render :update do |page|