On 24 dec 2007, at 05:09, David C. wrote:
end
add_category_link(:foo).should have_rjs(…)
end
end
Thanks! However, I am getting an error about ‘nil.render’ now, with
this backtrace:
You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.render
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_view/
helpers/prototype_helper.rb:956:in render' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_view/ helpers/prototype_helper.rb:727:in
insert_html’
/Users/bartz/Documents/workspace/blog/app/helpers/admin/
admin_helper.rb:34:in __instance_exec0' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/ active_support/core_ext/object/extending.rb:52:in
send’
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/
active_support/core_ext/object/extending.rb:52:in instance_exec' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_view/ helpers/prototype_helper.rb:581:in
initialize’
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_view/
helpers/prototype_helper.rb:992:in new' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_view/ helpers/prototype_helper.rb:992:in
update_page’
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_view/
helpers/javascript_helper.rb:87:in `link_to_function’
No idea how to fix this :(…
thanks in advance, and happy Christmas and all!
bartz