Hey,
I installed the rjs plugin yesterday and started using it for one set
of views. Today I notice that in an entirely separate
controller/template I’m seeing this error:
TypeError (can’t dup NilClass):
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in
dup' /vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in
default_template_name’
/vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:64:in
candidate_for_layout?' /vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:58:in
apply_layout?’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/layout.rb:212:in
render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
render’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
render’
/app/controllers/messages_controller.rb:52:in `get_messages_since’
It looks to me like layout.rb is incorrectly trying to use an rjs
template when none exists. I looked briefly at layout.rb but don’t
have enough context to know what’s going on without significant
digging. Anyone have a clue why the rjs stuff would get envoked when
no rjs templates exist in my views dir?
Thanks,
pt.
Parker T.
http://www.parkert.com/
510.541.0125