This code stores the last know location in the session. The location is not stored if it is one of the exceptions in the if statement. def store_location    if request.fullpath != '/users/sign_in' &&     request.fullpath != '/users/sign_up' &&     request.fullpath != '/users/password' &&     request.fullpath != '/users/sign_out' &&     request.fullpath != '/accounts' &&     request.fullpath != '/accounts/new' &&     !request.fullpath.include?('/users/confirmation') &&     request.fullpath != '/' &&     !request.xhr?     session[:previous_url] = request.fullpath   end  endI need to make it more simple.
Store location with some excluded path
ruby;ruby on rails