Sessions's in ROR wonky

I’m trying to build the “Rails Space” app using the RailsSpace book
but I’ve reached the part where you debug your sessions in the layout
and my sessions info comes out to be really crazy and look nothing
like what it does in the book.

#<CGI::Session:0x17d4708
@session_id=“1b50601c8baa5557852b400c0daea941”,
@cgi=#<Mongrel::CGIWrapper:0x182dd44
@cookies={"_rails_space_session"=>[“1b50601c8baa5557852b400c0daea941”]},
@response=#<Mongrel::HttpResponse:0x182df38 @body=#<StringIO:
0x182ded4>, @body_sent=false, @socket=#TCPSocket:0x18304f4,
@header=#<Mongrel::HeaderOut:0x182de84 @allowed_duplicates={“WWW-
Authenticate”=>true, “Set-Cookie2”=>true, “Set-Cookie”=>true,
“Warning”=>true}, @sent={“Date”=>true}, @out=#StringIO:0x182deac>,
@status_sent=false, @status=404, @header_sent=false>,
@handler=#<Mongrel::Rails::RailsHandler:0x1771770
@active_request_path="/user", @listener=#<Mongrel::HttpServer:
0x11c0948 @classifier={"/"=>[#<Mongrel::Rails::RailsHandler:
0x1771770 …>]},

(its longer but I cut it off)

I was hoping anyone could help me with this. I’m using Leopard with
SQL installed. Any help would be appreciated, the application adds
members easily, and I’ve triple checked whats in the book and in my
code.

I did uncomment the
config.action_controller.session_store= :active_record_store in the
environment.rb when the book indicated to do so. Another thing you may
want/need to know is when I raked the db:sessions:create, in the book
it says it should be add_sessions but mine came out to be
create_sessions.

Thank you for any help! :smiley:

want/need to know is when I raked the db:sessions:create, in the book
it says it should be add_sessions but mine came out to be
create_sessions.

Thank you for any help! :smiley:

You not need to worry about it, it’s only matter of rake version.
create_session or AddSessions is the same, so for it creates table of
sessions and add index into session_id.

Reinhart
http://teapoci.blogspot.com

Thank you! It seems its already indexed. As is updated_at:

index_sessions_on_session_id INDEX 0 Edit Drop
session_id
index_sessions_on_updated_at INDEX 0 Edit Drop updated_at

Shall I remove the updated_at index or leave it be? Thank you!

On May 5, 9:57 am, Rails T. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs