[Nitro] action_name attribute

Jonathan Buch john at oxyliquit.de
Thu Dec 7 14:57:05 EST 2006


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


More information about the Nitro-general mailing list