Is it okay to store the logged in user in the session in Ruby on Rails?

Posted by ben on Stack Overflow See other posts from Stack Overflow or by ben
Published on 2010-05-29T04:26:41Z Indexed on 2010/05/29 4:32 UTC
Read the original article Hit count: 159

Filed under:
|

Hey all,

I'm very new to RoR, and am trying to implement a user login system. I've got most of it working, but I'm trying to work out how I refer to the logged in user across many different views/controllers etc. Can I store the user in the session? Or is there a better way to do it?

Thanks for reading

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about login