[LRUG] use application controller in rails cells
Riccardo Tacconi
rtacconi at gmail.com
Tue Feb 9 09:54:24 PST 2010
Yes, I can access that method @controller.is_admin? current_user
Thank you
On Tue, Feb 9, 2010 at 5:49 PM, Tim Cowlishaw <tim at timcowlishaw.co.uk>wrote:
>
> On 9 Feb 2010, at 17:41, Riccardo Tacconi wrote:
>
> > Do I have a controller instance in the cell? I have no idea. Here is a
> better explanation of what I am doing:
>
> I believe it's set by the render method - all subclasses of Cell::Base
> should have @controller - pointing to the controller instance that they were
> instantiated from.
>
> Cheers,
>
> Tim
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
--
Riccardo Tacconi
Web developer at Wolseley UK
VIRTUELOGIC LIMITED (Director)
http://www.linkedin.com/in/riccardotacconi
http://riccardotacconi.blogspot.com/
http://twitter.com/rtacconi
Linux user: #400461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20100209/7fd7f5ad/attachment-0003.html>
More information about the Chat
mailing list