search for: find_by_session_id

Displaying 7 results from an estimated 7 matches for "find_by_session_id".

2006 Dec 01
2
ActiveRecord Sessions
...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
2006 May 23
2
additional fields in session DB table
...y "session_id" set_table_name "phpbb_sessions" end and a before_filter: session_hash = { "session_user_id" => @entry.user_id, "session_ip" => encode_ip, "session_time" => Time.now , "session_logged_in" => 1} @tmpsess = Session.find_by_session_id(session.session_id) @tmpsess.update_attributes(session_hash) if @tmpsess the logfile then shows : UPDATE phpbb_sessions SET "data" = ''BAh7EjoOZGVmX3N0YXRlIgdOWToIbGF0Zho0MC42NTk5OTk5OTk5OTk5OTcArhQ6DGRlZl9sYXQwOglsb25nZhstNzMuOTgwMDAwMDAwMDAwMDA0AIUfOgh1'', "sessi...
2007 Mar 01
1
ActiveRecord::StatementInvalid error
...ecord/ 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 `initialize'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ base.rb:864:in `silence'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_co...
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
...I would like to do something like session.model.user = @user and @recently_viewed_products = session.model.products Because I cannot replace ActiveRecordStore::Session with my session class above I have to do instead: session.model.user_id = @user.id and @recently_viewed_products = Session.find_by_session_id(session.session_id).products I don''t think it''s unreasonable to want to treat session.model as a first class ActiveRecord model, anything else just seems a bit half- baked. Any ideas on how I could make this happen would be greatly appreciated. Paul Odeon --~--~---------~--~...
2006 Aug 04
0
How to make prefix_sessions recognizable?
...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:281:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:794:in `silence'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1....
2006 May 30
3
phpbb forum with rails application.
I would like to knock up a phpbb forum with a rails application. I wanted to do this as I want to use ActiveRecord to crawl through the user database in the rails app. Is there a way to do this - on the same domain name and server... Or does it depend how the server is setup? -- Posted via http://www.ruby-forum.com/.
2009 Feb 28
0
activerecord-odbc-adapter 2.0 failed to allocate memory
...ems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1452:in `find_initial'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:587:in `find'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session/active_record_store.rb:113:in `find_by_session_id'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session/active_record_store.rb:288:in `initialize'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1398:in `silence'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/a...