Discussion Forums
- Topic List
- Most Recent Posts
- Sign In for more options
Hi,
Go through following link
http://www.zorched.net/2007/05/29/making-session-data-available-to-models-in-ruby-on-rails/
In that you will get the module UserInfo methodology .. by which u can access your session data in your controller as well as model file also...
try that.. I hope it'll help you.
Either if you will use 'authologic' gem/plugin then no need to worry about access your session at any place.
Good Luck ;)
-Ganesh K
Hi, I want to get current login user into models.But models wont access session Can anybody help
