[LRUG] use application controller in rails cells

Tim Cowlishaw tim at timcowlishaw.co.uk
Tue Feb 9 09:30:20 PST 2010


On 9 Feb 2010, at 17:23, Riccardo Tacconi wrote:

> I am trying to use Rails Cells. I have a is_admin? method but is not accessible from Cells controller (Cell::Base). Do you know how I can access mothods in application controller?
> 

Hmm - correct me if I'm wrong, but (assuming they're public methods), you should be able to call them on the @controller instance variable from within a cell instance?

Cheers,

Tim




More information about the Chat mailing list