Yes, I can access that method  @controller.is_admin? current_user<br><br>Thank you<br><br><div class="gmail_quote">On Tue, Feb 9, 2010 at 5:49 PM, Tim Cowlishaw <span dir="ltr"><<a href="mailto:tim@timcowlishaw.co.uk">tim@timcowlishaw.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
On 9 Feb 2010, at 17:41, Riccardo Tacconi wrote:<br>
<br>
> Do I have a controller instance in the cell? I have no idea. Here is a better explanation of what I am doing:<br>
<br>
</div>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.<br>
<div><div></div><div class="h5"><br>
Cheers,<br>
<br>
Tim<br>
<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Riccardo Tacconi<br>Web developer at Wolseley UK <br>VIRTUELOGIC LIMITED (Director)<br><br><a href="http://www.linkedin.com/in/riccardotacconi">http://www.linkedin.com/in/riccardotacconi</a><br>
<a href="http://riccardotacconi.blogspot.com/">http://riccardotacconi.blogspot.com/</a><br><a href="http://twitter.com/rtacconi">http://twitter.com/rtacconi</a><br>Linux user: #400461<br>