similar to: session active_record_store

Displaying 20 results from an estimated 4000 matches similar to: "session active_record_store"

2007 Oct 03
2
active_record_store sessions does not pass a :secret to #protect_from_forgery in Rails 2.0.0 Preview
After switching to active_record_store to host sessions, I now get the following errors: ActionController::InvalidAuthenticityToken in Pages#edit Showing app/views/pages/edit.html.erb where line #5 raised: No :secret given to the #protect_from_forgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store). Extracted source (around line #5): 2: 3:
2008 Dec 25
2
Switching to active_record_store session management errors out
Hello, Running Ruby 1.8.6 and Rails 2.2.2 against an Oracle XE database (sigh). I just upgraded Rails from 1.2.3 to 2.2.2, which made my cookie based system for storing session information to error out due to the 4Kb limit. So, I tried to turn on the active_record_store system by un- commenting out the "config.action_controller.session_store = :active_record_store" line in
2009 Jun 19
1
config.action_controller.session_store = :active_record_store
Hi All, I am new to Rails and learning rails reading ebook ''Agile web development using rails''. I am doing samples given in this book chapter by chapter. but I stuck when I come to Sessions chapter, they have given that to enable session to be Database based the line config.action_controller.session_store = :active_record_store is to be uncommented from config/environment.rb
2009 Feb 19
1
Switching to ActiveRecord Session Store
I''m having a problem switching from cookie sessions (the default) to active record sessions. I''ve created the sessions table via the rake task, uncommented the line config.action_controller.session_store = :active_record_store in my environment.rb file, cleared out my browsers cookies, restarted the server (natch), but still the it''s using cookie_store instead of
2010 Jul 07
1
what is a session stored via the active_record_store option unique to?
Hi, After a bunch of snooping in AWDWR and Railsguides I can''t reach a good understanding to the following question: What is a session stored via the active_record_store option unique to? In other words, how does rails bind the user to their session under the active_record_store option? This concern has arisen in the following way... ...I have two use levels in my app: 1) authenticated
2006 May 17
3
Session in ActiveRecordStore
The Agile book seems to say I should specify this as follows, probably in the environments.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] = CGI::Session::ActiveRecordStore BUT the environments.rb file would have me Un-Comment this: config.action_controller.session_store = :active_record_store Anyway, I''ve tried both, and in both cases it
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
Hey All, I''m trying to do a simple form_for (and I also get it with form_tag) and I''m getting the following error: ActionView::TemplateError (No :secret given to the #protect_from_forgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store).) on line #2 of users/new.fbml.erb: 1: <h1>Welcome To Courses, Let''s Get
2006 Dec 01
2
ActiveRecord Sessions
I am considering using merb to process file uploads. For the most part I''m going to keep it lean and mean. I would however like to access my active_record_session from my Rails app. Is this built into merb yet? Or is it OK to just add require ''action_controller/session/ active_record_store'' to merb_init.rb and then create my own session object
2010 Oct 15
2
how to list all sessions?
I have created ActiveRecord session store in a rails 3 project: > rake db:sessions:create > rake db:migrate then Myapp::Application.config.session_store :active_record_store, :key => ''_myapp_session'' in initializers/session_store.rb and it all works. Now the question: how do I list ALL active sessions? -- You received this message because you are subscribed to the
2011 May 19
3
Cookie Overflow at CSV import
Hi I have a form for importing a csv file. With every entry in my CSV I do a delayed background call from a webservice and the result is then saved to my database. This is working great! Now I tried a CSV file with over 400 rows. After clicking import in my form it takes some time and then I get the following error message: ''ActionDispatch::Cookies::CookieOverflow''. But
2008 Apr 04
2
TransactionError
Hi Today I got an alert mail from my watcher script, telling me that there was no Mongrel running, and that it started one (so the site was down for a few seconds.) This is the first time I got this error (AFAICS), but I''d like to resolve and prevent it for the future. From mongrel.log: ** Starting Mongrel listening at 0.0.0.0:foo ** Starting Rails with production environment... **
2009 May 12
2
rails 2.3.2 is not generating environment.rb properly
problem: rails 2.3.2 is not generating config.action_controller.session_store = :active_record_store in environment.rb this is the code in environment.rb --------------------------------------------------------------------------- # Be sure to restart your server when you modify this file # Specifies gem version of Rails to use when vendor/rails is not present RAILS_GEM_VERSION =
2009 May 20
1
Problem on rack_setup
I''m having problems trying to set up facebooker on a Rails 2.3.2 project using :active_record_store for cookies. The problem happens because of this commit: http://github.com/mmangino/facebooker/commit/308770447db06433e505aaf27db2614cee213cc2 That code is trying to add the Rack::Facebook to the dispatch chain after ActionController::RewindableInput or
2008 Jul 08
7
script/server error
Not sure why I''m getting this error, cause I believe it worked yesterday before I quit and now it''s giving me this error. The last thing I did was try and get an ActionMailer thing to work. I searched through the archives but nothing seemed applicable to my error. Here''s the error I''m getting: ruby script/server => Booting Mongrel (use
2008 Feb 20
2
Rails Edge ActiveSupport::TimeWithZone and Marshalled objects
Hello all, I''m trying to use the new ActiveSupport::TimeWithZone from Edge. The problem seems to be that I have a several-action process to create a Booking. This Booking is stored in the session (session[:booking] = @booking) throughout the actions until the last action is reached and the record is saved to the DB. Using TimeWithZone seems to be producing errors when trying to
2006 Mar 15
2
Session (stored in db) not working in testing mode
Hi, I just switched from storing my sessions on disk to storing them in MySQL. Changing environment.rb ''config.action_controller.session_store = :active_record_store''. But now all my tests fail. I get the following error: 1) Failure: test_authorized_new(AdControllerTest) [c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/depr
2006 Jan 04
3
Intermittent problem with link_to_remote()
Hi folks, My page displays links for ''categories'' using the link_to_remote() function. Clicking on one of these links goes to the controller and returns any child categories. I''m finding that the page works ok but after a number of clicks (average 5 or so), it crashes with an error: ============================================== Processing Base#index (for
2007 Mar 01
1
ActiveRecord::StatementInvalid error
When I try to run my webserver in the production environment I just get an application error message. This is all I can find in the log: ActiveRecord::StatementInvalid /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ connection_adapters/sqlite_adapter.rb:274:in `table_structure'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/
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
2006 Apr 03
2
no marshal_dump is defined for class Proc
Hello ~ This problem has me puzzled. When users login to my rails app I have the session set up to be stored in the MySQL database for the app. Intermittently, users will get the following error: no marshal_dump is defined for class Proc D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in `dump''