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

Avatar

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

expose(:offers){current_user.offers}
expose(:offer)

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

Avatar

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