search for: session_class

Displaying 4 results from an estimated 4 matches for "session_class".

Did you mean: session_claim
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their own model? In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/ action_controller/session/active_record_store.rb) it says you can override the default by setting CGI::Session::ActiveRecordStore.session_class = MySessionClass I have tried doing this in a number of ways but I get all kinds of weird errors, as varied as the methods I''ve tried. Before you shoot me down for trying to do something I shouldn''t let me explain why I want to do this. I''d like a session model that lo...
2006 May 05
5
Sessid.
How can I get the sessid from the current session object? For instance, I log in the system, and want to know which sessid I''m using. I''m storing the session using active_record. Later on, I want to restore a session finding it using the sessid. Thanks in advance. Fernando Lujan
2010 Oct 30
3
Authlogic not active
...r if defined?(@current_user) @current_user = current_user_session && current_user_session.user end authentication model class Authentication < Authlogic::Session::Base authenticate_with User end user model class User < ActiveRecord::Base acts_as_authentic do |c| c.session_class = Authentication c.login_field = :login c.ignore_blank_passwords = false end end routes in routes.rb map.root :controller => "site", :action => "index" map.resource :authentications map.resources :users map.login "login", :controller =>...
2005 Aug 08
7
Problems with ./scripts/generate scaffold
Hi all, I''m new to rails after having used perl for most of these things, and am trying to get my head around the generate script for a project playing around with. If I do: ./scripts/generate controller Device I get app/controllers/device_controller.rb where I can then add: scaffold :device However, if I want to actually generate the scaffolding so I can make some changes: