rails/rails — pull request #9898 by egjiri (2013-03-24 04:52:19+00:00)
Title: Fixes action_view issue where pages do not render due to NoMethodError

The detail_args_for method, without this fix, results in a NoMethodError there are no options being passed into it as it tries to execute the empty? method on a nil object.

The exact error that I used to get was the following...

Completed 500 Internal Server Error in 17ms
NoMethodError (undefined method empty?' for nil:NilClass):
actionpack (3.2.13) lib/action_view/lookup_context.rb:145:indetail_args_for'
actionpack (3.2.13) lib/action_view/lookup_context.rb:139:in args_for_lookup'
actionpack (3.2.13) lib/action_view/lookup_context.rb:109:infind'
actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:3:in find_template'
actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:34:indetermine_template'
...