search for: active_record_stor

Displaying 20 results from an estimated 66 matches for "active_record_stor".

Did you mean: active_record_store
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 (authlogic) and 2) unauthenticated. In case 2, I''d been persisting u...
2008 Feb 20
2
Rails Edge ActiveSupport::TimeWithZone and Marshalled objects
...s to be producing errors when trying to unmarshal the Booking back from the users session, giving me: Status: 500 Internal Server Error class ActiveSupport::TimeWithZone needs to have method `_load'' /Users/alistair/gresfordtrust/vendor/rails/actionpack/lib/ action_controller/session/active_record_store.rb:83:in `load'' /Users/alistair/gresfordtrust/vendor/rails/actionpack/lib/ action_controller/session/active_record_store.rb:83:in `unmarshal'' /Users/alistair/gresfordtrust/vendor/rails/actionpack/lib/ action_controller/session/active_record_store.rb:121:in `data''...
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 environment.rb and then create a db session (db:sessions:create) and run a rake migration (rake db:migrate). Got all that done, which created a table named SESSIONS in the DB. Howeve...
2006 Jan 04
3
Intermittent problem with link_to_remote()
...Base#index (for 127.0.0.1 at 2006-01-04 15:26:28) [POST] Parameters: {"current_stage"=>"stage_1", "category_id"=>"1"} ArgumentError (undefined class/module Listing): F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:84:in `load'' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:84:in `unmarshal'' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:122:in `data'' F:/ruby...
2009 Jun 19
1
config.action_controller.session_store = :active_record_store
...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 file. but I am not able to locate this line in my environement.rb file, What can be happened with my setup ?? Please help...... I am using Redhat Ent 4 with Ruby 1.8.6 and rails 2.3.2
2006 Apr 03
2
no marshal_dump is defined for class Proc
...zzled. 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'' D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in `marshal'' D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:133:in `marshal_data!&...
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 S...
2007 Mar 01
1
ActiveRecord::StatementInvalid error
...lumns'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ base.rb:760:in `columns'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ base.rb:768:in `columns_hash'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/ session/active_record_store.rb:105:in `setup_sessid_compatibility! '' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/ session/active_record_store.rb:79:in `find_by_session_id'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/ session/active_record_store.rb:283:in `init...
2010 Nov 29
3
session active_record_store
Hi, There doesn''t seem to be any previous posts about this problem, I must be setting things up wrongly at very basics... Firstly, the problem... I can''t get session[] to persist with active_record_store. I enabled (config.action_controller.session_store = :active_record_store) in environment.rb and created the sessions table at my MySQL database. When I do a session[:blah] = "blah" at the controller, it does save it (encrypted/scrambled) in the DB, but it doesn''t persist in the...
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 active_record store. Just to be sure, I added puts statements in the initializer block of each separate store''s ruby classes in vendor rails...
2006 Feb 14
1
ArgumentError in <controller not set>#<action not set> ??
...Here is the text, thanks. ArgumentError in <controller not set>#<action not set> undefined class/module CustomerDomain RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:84:in `load'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:84:in `unmarshal'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session/active_record_store.rb:122:in `data'' /usr/local...
2006 Mar 28
0
MySQL problems and undefined class User
...E id = 963 Undefined class problem: ArgumentError in <controller not set>#<action not set> undefined class/module User RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in `dump'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in `marshal'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:133:in `marshal_data!'' C:/ruby/l...
2005 Dec 01
0
Troubleshooting "undefined class/module"
...e... maybe someone can help. A class in a fairly complicated existing Rails app that I''m working on seems intermittently not to load. The error is basically the following: undefined class/module InnerPackage c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0 /lib/action_controller/session/active_record_store.rb:75:in `load'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0 /lib/action_controller/session/active_record_store.rb:75:in `unmarshal'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0 /lib/action_controller/session/active_record_store.rb:116:in `data'' c:/ruby/lib/ruby/...
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
2006 Oct 16
3
Strange ActiveRecord error popping up
...b:86:in `transaction'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/transactions.rb:112:in `transaction'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/transactions.rb:120:in `save'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:307:in `update'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:863:in `silence'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:307:in `update'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/se...
2007 Dec 29
2
needs to have method `_load'
...d in the session. I hope that''s not the case. The exception is: /!\ FAILSAFE /!\ Dec 29, 2007 02:05PM Status: 500 Internal Server Error class TzTime needs to have method `_load'' /home/dsailer/aptana/workspace/OrbRuby/vendor/rails/actionpack/lib/ action_controller/session/active_record_store.rb:84:in `load'' /home/dsailer/aptana/workspace/OrbRuby/vendor/rails/actionpack/lib/ action_controller/session/active_record_store.rb:84:in `unmarshal'' /home/dsailer/aptana/workspace/OrbRuby/vendor/rails/actionpack/lib/ action_controller/session/active_record_store.rb:122:...
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
2006 Aug 04
0
How to make prefix_sessions recognizable?
...opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:696:in `columns'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:704:in `columns_hash'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session/active_record_store.rb:103:in `setup_sessid_compatibility!'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session/active_record_store.rb:77:in `find_by_session_id'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session/active_record_store.rb:2...
2008 Apr 04
2
TransactionError
...can be quite sure that there was no save or destroy called in my app code. (By the way, in config/environments/production.rb I have config.log_level = :warn but the error was not logged in log/production.log . And in in config/environment.rb I have config.action_controller.session_store = :active_record_store ) Could it be that the error occured when some session data was saved? In actionpack/lib/action_controller/session/active_record_store.rb there is def update if @session ActiveRecord::Base.silence { @session.save } end end The "silence" part would explain why there...
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 (CGI::Session::ActiveRecordStore::Session.find_by_session_id (cookies[''_session_id'']))? Thanks a lot. Erik