Skip to content

Instantly share code, notes, and snippets.

@mguymon
Created March 3, 2009 00:27
Show Gist options
  • Save mguymon/73101 to your computer and use it in GitHub Desktop.
Save mguymon/73101 to your computer and use it in GitHub Desktop.
NoMethodError in 'Admin::PagesController index should be successful'
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
/home/zinger/devel/projects/clackclackclack/click3x/gyt/trunk/app/controllers/admin/pages_controller.rb:80:
/home/zinger/devel/projects/clackclackclack/click3x/gyt/trunk/vendor/plugins/resource_controller/lib/resource_controller/helpers/internal.rb:17:in `instance_eval'
/home/zinger/devel/projects/clackclackclack/click3x/gyt/trunk/vendor/plugins/resource_controller/lib/resource_controller/helpers/internal.rb:17:in `response_for'
/home/zinger/devel/projects/clackclackclack/click3x/gyt/trunk/vendor/plugins/resource_controller/lib/resource_controller/helpers/internal.rb:12:in `response_for'
/home/zinger/devel/projects/clackclackclack/click3x/gyt/trunk/vendor/plugins/resource_controller/lib/resource_controller/actions.rb:7:in `index'
./spec/controllers/admin/pages_controller_spec.rb:23:in `do_get_index'
./spec/controllers/admin/pages_controller_spec.rb:28:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment