search for: session_user_id

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

2006 May 23
2
additional fields in session DB table
...In application.rb i put a before_filter to update the session table I have a model for the sessions $ more app/models/session.rb class Session < ActiveRecord::Base set_primary_key "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...
2006 Mar 09
2
turn off auto increment
...y key is a field called session_id and is the actual session id like "8df838303ufdfu838" however when i do the following in the model: set_primary_key "session_id" and the following in the controller: @session_hash = { "session_id" => @session.session_id, "session_user_id" => @entry.user_id, "session_ip" => encode_ip, "session_time" => Time.now } it wont update the session_id as noted here in script/console: >> sess = Session.new => #<Session:0x407683f0 @attributes={"session_start"=>0, "session_time&...
2005 Jan 24
1
.call file creation
I am curious partly because it has occurred randomly in my asterisk system. How does one go about creating a .call file for placing a call between two extensions/phones? I know this has been mentioned and is probably in one of the wikis somewhere, but I am unsure exactally how to go about doing it. Can anyone point me in the right direction. Dan
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/.