On Mon, Apr 26, 2010 at 7:05 AM, RichardOnRails
<[email protected]> wrote:

>> put it in session
> I'm ready to add some version of an authenticated user,  Authlogic, I
> think.  That should give me a session as my repository

The "session" concept doesn't imply "authentication" -- it's a Rails
built-in feature. And again it's just a hash.

Set a value:
   session["somevar"] = "somevalue"

Read it anywhere:

   session["somevar"]

That's all there is to it. (Yes, there is a 4k limit to data stored in the
default Session::CookieStore -- shouldn't be a problem for you in
this example at least. But the API docs are your friend.)

HTH, and good luck,
-- 
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to