[Nitro] action_name attribute

Lars Olsson lasso at lassoweb.se
Fri Dec 8 06:11:00 EST 2006


Hi!

Yes, it's a bit strange. If I'm in an action (or template)
self.action_name works, but @context.action_name doesn't.

Poke, poke...How about some tips on the Nitro::Configuration object?


Kindly

/lasso



On Fri, December 8, 2006 08:47, George Moschovitis wrote:
> this looks like a bug. strange though, I think I am using  action name in
> some of my projects.
>
> -g.
>
>
> On 12/7/06, Jonathan Buch <john at oxyliquit.de> wrote:
>
>> Hi,
>>
>>
>>> Just a quick question. Nitro::Context includes Nitro::Render which
>>> exposes the action_name (represents "The name of the currently
>>> executing action") attribute. However, this attribute always seems to
>>> return nil whenever I call it. I also cannot find any evidence that
>>> @context.action_name ever get touched (at least not in render.rb). Is
>>> it a bug? A feature? Or a misunderstanding on my part?
>>
>> Might be a bug.  The compiler should set this attribute in
>> compile_action() which it doesn't. Might be due to the parameter
>> reorganizing.  Try using the @action instance variable.
>>
>> George, can you verify that the documentation (first part) above
>> compile_action() ist still like the implementation is meant to be?
>>
>> No need to hurry, this can go into 0.42, but it definitly should be
>> revised.
>>
>> Jo
>>
>>
>> --
>> Feel the love
>> http://pinkjuice.com/pics/ruby.png
>> _______________________________________________
>> Nitro-general mailing list
>> Nitro-general at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/nitro-general
>>
>>
>
>
> --
> http://cull.gr
> http://www.joy.gr
> http://blog.gmosx.com
> http://nitroproject.org
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
>




More information about the Nitro-general mailing list