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

Chris Farmiloe chris.farmiloe at farmiloe.com
Fri Sep 16 13:22:19 EDT 2005

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|


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?



More information about the Nitro-general mailing list