[Nitro] BUG: problem with actions named <something>action

George Moschovitis george.moschovitis at gmail.com
Sat Sep 17 14:57:05 EDT 2005


Hmm thanks for reporting this! I 'll add the patch!

regards,
George.

On 9/16/05, Chris Farmiloe <chris.farmiloe at farmiloe.com> wrote:
> 
> timlarson on #nitro noticed a problem rendering Controller methods
> (actions) named 'transaction'
> (and also reaction, toastaction etc)
> 
> culprit is a gsub in dispatcher.rb:170....
> 
> Change the line:
> 
> klass.instance_methods.grep(/(action$)|(template$)/).each do |m|
> 
> to
> 
> klass.instance_methods.grep(/(_action$)|(template$)/).each do |m|
> 
> If anyone can see any side effects to this please speak up ;-)
> 
> also not sure if the template should have an underscore too?
> 
> Enjoy.
> 
> chrisfarms.
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
> 


-- 
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list