Displaying 3 results from an estimated 3 matches for "encode_ip".
Did you mean:
encode_id
2006 Mar 09
2
turn off auto increment
...t;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"=>0,
"session_ip"=>"0", "sessio...
2006 May 23
2
additional fields in session DB table
...ave 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_sessions SET
"data" =
''BAh7EjoOZGVmX3N0YXRlIgd...
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/.