[Radiant] ActionView helpers in a behavior - I think I got it!

Jay Levitt lists-radiant at shopwatch.org
Tue Jul 18 12:51:08 CDT 2006


Andrew Hodgkinson wrote:
> Jay Levitt wrote:
> 
>> Thanks.  If I run into any weird side effects I'll start by assuming
>> they're not my fault now...
> 
> Well, kind of; I think the "Right Answer" might be to modify the 
> Behavior API so that Radiant's existing ActionController::Base instance 
> gets passed in as a parameter rather than generating a new 
> instantiation. You could default the parameter to 'nil' and use a new 
> instance of ActionController::Base if need be, for cases where your 
> modified Behavior code got installed into an older Radiant version.
> 

That'd be really nice, actually.  I think that's what I was 
(unknowingly) asking for last month, when I got the advice to create a 
dummy controller.  John, do you think it might be possible to get at the 
current ActionController from a behavior?

Jay Levitt




More information about the Radiant mailing list