Given a controller which includes code like:
def foo_action
render :action => :symbol
end
(render_action behaves the same)
... since RJS templates were added, functional testing or rendering the view from this action will generate an error similar to the following:
TypeError: can't dup Symbol
./test/controller/../../lib/action_controller/base.rb:982:in `dup'
./test/controller/../../lib/action_controller/base.rb:982:in `default_template_name'
./test/controller/../../lib/action_controller/layout.rb:249:in `candidate_for_layout?'
./test/controller/../../lib/action_controller/layout.rb:243:in `apply_layout?'
./test/controller/../../lib/action_controller/layout.rb:220:in `render_without_benchmark'
./test/controller/../../lib/action_controller/benchmarking.rb:53:in `render'
A patch to trunk is attached which includes an actionpack unit test for the problem as well as a patch to the RJS template engine protecting the symbol from being .dup()ed by the RJS code.