RailsCasts Pro episodes are now free!

Learn more or hide this

Denis's Profile

GitHub User: ramden

Site: http://www.ramden.com/blog

Comments by Denis


I'm so sorry but have to tell you this too: take my previous comment, then in the mentioned offers controller add


and voila...you have a sort of..caching nesting how much I can see


Found out that if you put expose(:current_user){current_user} in combination with devise, this one little line is almost enough to access all submodules through it like a global var with meaning. In later controllers (assuming you have to log in as user) just using 'current_user.offers' etc