NameError in EmployeesController#index

undefined local variable or method `default_query' for #<EmployeesController:0x000000066c9188>

Rails.root: /home/lukas/projects/basepack/spec/dummy_app

Application Trace | Framework Trace | Full Trace
activesupport (4.0.2) lib/active_support/callbacks.rb:407:in `_run__4775893704500171__process_action__callbacks'
activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.2) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.2) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
activerecord (4.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.2) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.2) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.2) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.2) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:680:in `call'
rack-pjax (0.7.0) lib/rack/pjax.rb:12:in `call'
warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
warden (1.2.3) lib/warden/manager.rb:34:in `catch'
warden (1.2.3) lib/warden/manager.rb:34:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
remotipart (1.2.1) lib/remotipart/middleware.rb:27:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.2) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.2) lib/active_support/callbacks.rb:373:in `_run__4013987637400421336__call__callbacks'
activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.2) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.2) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `block in tagged'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in `tagged'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `tagged'
railties (4.0.2) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
dragonfly (1.0.1) lib/dragonfly/cookie_monster.rb:9:in `call'
activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.2) lib/rails/engine.rb:511:in `call'
railties (4.0.2) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/builder.rb:138:in `call'
rack (1.5.2) lib/rack/urlmap.rb:65:in `block in call'
rack (1.5.2) lib/rack/urlmap.rb:50:in `each'
rack (1.5.2) lib/rack/urlmap.rb:50:in `call'
rack-test (0.6.2) lib/rack/mock_session.rb:30:in `request'
rack-test (0.6.2) lib/rack/test.rb:230:in `process_request'
rack-test (0.6.2) lib/rack/test.rb:57:in `get'
/home/lukas/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/forwardable.rb:171:in `get'
capybara (2.2.0) lib/capybara/rack_test/browser.rb:60:in `process'
capybara (2.2.0) lib/capybara/rack_test/browser.rb:35:in `process_and_follow_redirects'
capybara (2.2.0) lib/capybara/rack_test/browser.rb:21:in `visit'
capybara (2.2.0) lib/capybara/rack_test/driver.rb:42:in `visit'
capybara (2.2.0) lib/capybara/session.rb:197:in `visit'
capybara (2.2.0) lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
/home/lukas/projects/basepack/spec/integration/basic/list/basepack_basic_list_spec.rb:393:in `block (4 levels) in <top (required)>'
rspec-core (2.14.7) lib/rspec/core/example.rb:114:in `instance_eval'
rspec-core (2.14.7) lib/rspec/core/example.rb:114:in `block in run'
rspec-core (2.14.7) lib/rspec/core/example.rb:179:in `call'
rspec-core (2.14.7) lib/rspec/core/example.rb:179:in `run'
rspec-rails (2.14.0) lib/rspec/rails/adapters.rb:51:in `block (2 levels) in <module:MiniTestLifecycleAdapter>'
rspec-core (2.14.7) lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
rspec-core (2.14.7) lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
rspec-core (2.14.7) lib/rspec/core/example.rb:247:in `instance_eval_with_args'
rspec-core (2.14.7) lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
rspec-core (2.14.7) lib/rspec/core/hooks.rb:108:in `call'
rspec-core (2.14.7) lib/rspec/core/hooks.rb:108:in `run'
rspec-core (2.14.7) lib/rspec/core/hooks.rb:446:in `run_hook'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:340:in `run_around_each_hooks'
rspec-core (2.14.7) lib/rspec/core/example.rb:256:in `with_around_each_hooks'
rspec-core (2.14.7) lib/rspec/core/example.rb:111:in `run'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:390:in `block in run_examples'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:386:in `map'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:386:in `run_examples'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:371:in `run'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:372:in `block in run'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:372:in `map'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:372:in `run'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:372:in `block in run'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:372:in `map'
rspec-core (2.14.7) lib/rspec/core/example_group.rb:372:in `run'
rspec-core (2.14.7) lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
rspec-core (2.14.7) lib/rspec/core/command_line.rb:28:in `map'
rspec-core (2.14.7) lib/rspec/core/command_line.rb:28:in `block in run'
rspec-core (2.14.7) lib/rspec/core/reporter.rb:58:in `report'
rspec-core (2.14.7) lib/rspec/core/command_line.rb:25:in `run'
rspec-core (2.14.7) lib/rspec/core/runner.rb:80:in `run'
rspec-core (2.14.7) lib/rspec/core/runner.rb:17:in `block in autorun'

Request

Parameters:

None

Response

Headers:

None