Displaying 2 results from an estimated 2 matches for "cas_user".
Did you mean:
as_user
2011 Feb 24
1
concurrent users.
If I have:
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter RubyCAS::Filter
before_filter :fetch_operator
include SessionsHelper
private
def fetch_operator
@operator ||= session[:cas_user] && Operator.find_by_uid(session[:cas_user])
log_out if @operator.nil?
end
end
@operator is available for all controllers of my application.
But If I run, for example, two instances of my application from
different locations.
In the first instance the user logs in as ''user1...
2010 Sep 13
13
what I've missed in routes.rb?
...controller is:
class SessionsController < ApplicationController
def destroy
session[:id] = nil
session.delete(:casfilteruser)
CASClient::Frameworks::Rails::Filter.logout(self)
end
end
In application.html.erb I have:
<%= link_to ''Logout'', session_path(session[:cas_user]), :method => :delete %>
I think it''s all but:
No route matches {:action=>"destroy", :controller=>"sessions",
:id=>"name.surname"}
What I''ve missed?
--
You received this message because you are subscribed to the Google Groups "...