NoMethodError in Corzinus::Checkouts#show

Showing /home/yaroslav/Learn/Rails/corzinus/app/views/corzinus/addresses/_fields.haml where line #9 raised:

undefined method `countries_options' for #<#<Class:0x00565390258a70>:0x0056539357fb10>
Extracted source (around line #9):
7
8
9
10
11
12
              
.form-group
= field.input :country_id, collection: countries_options(@countries),
include_blank: t('simple_form.placeholders.address.country'),
input_html: { id: "country_id_#{type}_address", class: 'select-country' }

Trace of template inclusion: /home/yaroslav/Learn/Rails/corzinus/app/views/corzinus/checkouts/address.html.haml

Rails.root: /home/yaroslav/Learn/Rails/corzinus/spec/dummy

Application Trace | Framework Trace | Full Trace
/home/yaroslav/Learn/Rails/corzinus/app/views/corzinus/addresses/_fields.haml:9:in `__home_yaroslav__earn__ails_corzinus_app_views_corzinus_addresses__fields_haml__2870614450225652665_47458487104140'
actionview (5.0.1) lib/action_view/template.rb:159:in `block in render'
activesupport (5.0.1) lib/active_support/notifications.rb:166:in `instrument'
actionview (5.0.1) lib/action_view/template.rb:354:in `instrument'
actionview (5.0.1) lib/action_view/template.rb:157:in `render'
actionview (5.0.1) lib/action_view/renderer/partial_renderer.rb:343:in `render_partial'
actionview (5.0.1) lib/action_view/renderer/partial_renderer.rb:311:in `block in render'
actionview (5.0.1) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
activesupport (5.0.1) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.1) lib/active_support/notifications.rb:164:in `instrument'
actionview (5.0.1) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
actionview (5.0.1) lib/action_view/renderer/partial_renderer.rb:310:in `render'
actionview (5.0.1) lib/action_view/renderer/renderer.rb:47:in `render_partial'
actionview (5.0.1) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/yaroslav/Learn/Rails/corzinus/app/views/corzinus/checkouts/address.html.haml:20:in `block (2 levels) in __home_yaroslav__earn__ails_corzinus_app_views_corzinus_checkouts_address_html_haml__3967134072072344579_47458477139120'
haml (4.0.7) lib/haml/helpers.rb:368:in `block in capture_haml'
haml (4.0.7) lib/haml/helpers.rb:608:in `with_haml_buffer'
haml (4.0.7) lib/haml/helpers.rb:364:in `capture_haml'
haml (4.0.7) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml'
actionview (5.0.1) lib/action_view/helpers/form_helper.rb:1926:in `block in fields_for_nested_model'
actionview (5.0.1) lib/action_view/helpers/capture_helper.rb:39:in `block in capture'
actionview (5.0.1) lib/action_view/helpers/capture_helper.rb:203:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (5.0.1) lib/action_view/helpers/capture_helper.rb:39:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (5.0.1) lib/action_view/helpers/form_helper.rb:720:in `fields_for'
actionview (5.0.1) lib/action_view/helpers/form_helper.rb:1925:in `fields_for_nested_model'
actionview (5.0.1) lib/action_view/helpers/form_helper.rb:1915:in `fields_for_with_nested_attributes'
actionview (5.0.1) lib/action_view/helpers/form_helper.rb:1561:in `fields_for'
simple_form (3.4.0) lib/simple_form/action_view_extensions/builder.rb:27:in `simple_fields_for'
/home/yaroslav/Learn/Rails/corzinus/app/views/corzinus/checkouts/address.html.haml:19:in `block in __home_yaroslav__earn__ails_corzinus_app_views_corzinus_checkouts_address_html_haml__3967134072072344579_47458477139120'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_with_haml'
haml (4.0.7) lib/haml/helpers.rb:278:in `with_tabs'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block in form_for_with_haml'
actionview (5.0.1) lib/action_view/helpers/capture_helper.rb:39:in `block in capture'
actionview (5.0.1) lib/action_view/helpers/capture_helper.rb:203:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (5.0.1) lib/action_view/helpers/capture_helper.rb:39:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (5.0.1) lib/action_view/helpers/form_helper.rb:450:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
simple_form (3.4.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `block in simple_form_for'
simple_form (3.4.0) lib/simple_form/action_view_extensions/form_helper.rb:45:in `with_simple_form_field_error_proc'
simple_form (3.4.0) lib/simple_form/action_view_extensions/form_helper.rb:25:in `simple_form_for'
/home/yaroslav/Learn/Rails/corzinus/app/views/corzinus/checkouts/address.html.haml:4:in `__home_yaroslav__earn__ails_corzinus_app_views_corzinus_checkouts_address_html_haml__3967134072072344579_47458477139120'
actionview (5.0.1) lib/action_view/template.rb:159:in `block in render'
activesupport (5.0.1) lib/active_support/notifications.rb:166:in `instrument'
actionview (5.0.1) lib/action_view/template.rb:354:in `instrument'
actionview (5.0.1) lib/action_view/template.rb:157:in `render'
actionview (5.0.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
actionview (5.0.1) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
activesupport (5.0.1) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.1) lib/active_support/notifications.rb:164:in `instrument'
actionview (5.0.1) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
actionview (5.0.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
actionview (5.0.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
actionview (5.0.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
actionview (5.0.1) lib/action_view/renderer/template_renderer.rb:14:in `render'
actionview (5.0.1) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionview (5.0.1) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (5.0.1) lib/action_view/rendering.rb:103:in `_render_template'
actionpack (5.0.1) lib/action_controller/metal/streaming.rb:217:in `_render_template'
actionview (5.0.1) lib/action_view/rendering.rb:83:in `render_to_body'
actionpack (5.0.1) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
actionpack (5.0.1) lib/action_controller/metal/renderers.rb:142:in `render_to_body'
actionpack (5.0.1) lib/abstract_controller/rendering.rb:26:in `render'
actionpack (5.0.1) lib/action_controller/metal/rendering.rb:36:in `render'
actionpack (5.0.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
activesupport (5.0.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/home/yaroslav/.rbenv/versions/2.3.1/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
activesupport (5.0.1) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (5.0.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
actionpack (5.0.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
activerecord (5.0.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (5.0.1) lib/action_controller/metal/instrumentation.rb:43:in `render'
wicked (1.3.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.3.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
rectify (0.8.0) lib/rectify/command.rb:22:in `method_missing'
/home/yaroslav/Learn/Rails/corzinus/app/controllers/corzinus/checkouts_controller.rb:15:in `block (2 levels) in show'
wisper (1.6.1) lib/wisper/registration/block.rb:5:in `broadcast'
wisper (1.6.1) lib/wisper/publisher.rb:65:in `block in broadcast'
/home/yaroslav/.rbenv/versions/2.3.1/lib/ruby/2.3.0/set.rb:306:in `each_key'
/home/yaroslav/.rbenv/versions/2.3.1/lib/ruby/2.3.0/set.rb:306:in `each'
wisper (1.6.1) lib/wisper/publisher.rb:64:in `broadcast'
/home/yaroslav/Learn/Rails/corzinus/app/commands/corzinus/checkout/access_step.rb:15:in `call'
rectify (0.8.0) lib/rectify/command.rb:8:in `call'
/home/yaroslav/Learn/Rails/corzinus/app/controllers/corzinus/checkouts_controller.rb:14:in `show'
actionpack (5.0.1) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
actionpack (5.0.1) lib/abstract_controller/base.rb:188:in `process_action'
actionpack (5.0.1) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (5.0.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (5.0.1) lib/active_support/callbacks.rb:126:in `call'
activesupport (5.0.1) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
activesupport (5.0.1) lib/active_support/callbacks.rb:455:in `call'
activesupport (5.0.1) lib/active_support/callbacks.rb:101:in `__run_callbacks__'
activesupport (5.0.1) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
activesupport (5.0.1) lib/active_support/callbacks.rb:90:in `run_callbacks'
actionpack (5.0.1) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (5.0.1) lib/action_controller/metal/rescue.rb:20:in `process_action'
actionpack (5.0.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (5.0.1) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.1) lib/active_support/notifications.rb:164:in `instrument'
actionpack (5.0.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (5.0.1) lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
activerecord (5.0.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (5.0.1) lib/abstract_controller/base.rb:126:in `process'
actionview (5.0.1) lib/action_view/rendering.rb:30:in `process'
actionpack (5.0.1) lib/action_controller/metal.rb:190:in `dispatch'
actionpack (5.0.1) lib/action_controller/metal.rb:262:in `dispatch'
actionpack (5.0.1) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
actionpack (5.0.1) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (5.0.1) lib/action_dispatch/journey/router.rb:39:in `block in serve'
actionpack (5.0.1) lib/action_dispatch/journey/router.rb:26:in `each'
actionpack (5.0.1) lib/action_dispatch/journey/router.rb:26:in `serve'
actionpack (5.0.1) lib/action_dispatch/routing/route_set.rb:725:in `call'
railties (5.0.1) lib/rails/engine.rb:522:in `call'
railties (5.0.1) lib/rails/railtie.rb:193:in `public_send'
railties (5.0.1) lib/rails/railtie.rb:193:in `method_missing'
actionpack (5.0.1) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
actionpack (5.0.1) lib/action_dispatch/routing/mapper.rb:46:in `serve'
actionpack (5.0.1) lib/action_dispatch/journey/router.rb:39:in `block in serve'
actionpack (5.0.1) lib/action_dispatch/journey/router.rb:26:in `each'
actionpack (5.0.1) lib/action_dispatch/journey/router.rb:26:in `serve'
actionpack (5.0.1) lib/action_dispatch/routing/route_set.rb:725:in `call'
rack (2.0.1) lib/rack/etag.rb:25:in `call'
rack (2.0.1) lib/rack/conditional_get.rb:25:in `call'
rack (2.0.1) lib/rack/head.rb:12:in `call'
rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context'
rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/cookies.rb:613:in `call'
activerecord (5.0.1) lib/active_record/migration.rb:553:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
activesupport (5.0.1) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
activesupport (5.0.1) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
activesupport (5.0.1) lib/active_support/callbacks.rb:90:in `run_callbacks'
actionpack (5.0.1) lib/action_dispatch/middleware/callbacks.rb:36:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.0.1) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.0.1) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.0.1) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.0.1) lib/rails/rack/logger.rb:24:in `call'
sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
request_store (1.3.2) lib/request_store/middleware.rb:9:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
activesupport (5.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
railties (5.0.1) lib/rails/engine.rb:522:in `call'
rack (2.0.1) lib/rack/urlmap.rb:68:in `block in call'
rack (2.0.1) lib/rack/urlmap.rb:53:in `each'
rack (2.0.1) lib/rack/urlmap.rb:53:in `call'
rack-test (0.6.3) lib/rack/mock_session.rb:30:in `request'
rack-test (0.6.3) lib/rack/test.rb:244:in `process_request'
rack-test (0.6.3) lib/rack/test.rb:58:in `get'
/home/yaroslav/.rbenv/versions/2.3.1/lib/ruby/2.3.0/forwardable.rb:189:in `get'
capybara (2.12.0) lib/capybara/rack_test/browser.rb:61:in `process'
capybara (2.12.0) lib/capybara/rack_test/browser.rb:36:in `process_and_follow_redirects'
capybara (2.12.0) lib/capybara/rack_test/browser.rb:22:in `visit'
capybara (2.12.0) lib/capybara/rack_test/driver.rb:43:in `visit'
capybara (2.12.0) lib/capybara/session.rb:252:in `visit'
capybara (2.12.0) lib/capybara/dsl.rb:52:in `block (2 levels) in <module:DSL>'
rspec-rails (3.5.2) lib/rspec/rails/example/feature_example_group.rb:29:in `visit'
/home/yaroslav/Learn/Rails/corzinus/spec/features/corzinus/checkout/address_step_spec.rb:13:in `block (2 levels) in <module:Corzinus>'
rspec-core (3.5.4) lib/rspec/core/example.rb:443:in `instance_exec'
rspec-core (3.5.4) lib/rspec/core/example.rb:443:in `instance_exec'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:350:in `run'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:507:in `block in run_owned_hooks_for'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:506:in `each'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:506:in `run_owned_hooks_for'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:593:in `block in run_example_hooks_for'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:592:in `reverse_each'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:592:in `run_example_hooks_for'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:462:in `run'
rspec-core (3.5.4) lib/rspec/core/example.rb:490:in `run_before_example'
rspec-core (3.5.4) lib/rspec/core/example.rb:253:in `block in run'
rspec-core (3.5.4) lib/rspec/core/example.rb:496:in `block in with_around_and_singleton_context_hooks'
rspec-core (3.5.4) lib/rspec/core/example.rb:453:in `block in with_around_example_hooks'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:464:in `block in run'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:604:in `block in run_around_example_hooks_for'
rspec-core (3.5.4) lib/rspec/core/example.rb:338:in `call'
rspec-rails (3.5.2) lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
rspec-core (3.5.4) lib/rspec/core/example.rb:443:in `instance_exec'
rspec-core (3.5.4) lib/rspec/core/example.rb:443:in `instance_exec'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:375:in `execute_with'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for'
rspec-core (3.5.4) lib/rspec/core/example.rb:338:in `call'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:607:in `run_around_example_hooks_for'
rspec-core (3.5.4) lib/rspec/core/hooks.rb:464:in `run'
rspec-core (3.5.4) lib/rspec/core/example.rb:453:in `with_around_example_hooks'
rspec-core (3.5.4) lib/rspec/core/example.rb:496:in `with_around_and_singleton_context_hooks'
rspec-core (3.5.4) lib/rspec/core/example.rb:251:in `run'
rspec-core (3.5.4) lib/rspec/core/example_group.rb:627:in `block in run_examples'
rspec-core (3.5.4) lib/rspec/core/example_group.rb:623:in `map'
rspec-core (3.5.4) lib/rspec/core/example_group.rb:623:in `run_examples'
rspec-core (3.5.4) lib/rspec/core/example_group.rb:589:in `run'
rspec-core (3.5.4) lib/rspec/core/runner.rb:113:in `block (3 levels) in run_specs'
rspec-core (3.5.4) lib/rspec/core/runner.rb:113:in `map'
rspec-core (3.5.4) lib/rspec/core/runner.rb:113:in `block (2 levels) in run_specs'
rspec-core (3.5.4) lib/rspec/core/configuration.rb:1835:in `with_suite_hooks'
rspec-core (3.5.4) lib/rspec/core/runner.rb:112:in `block in run_specs'
rspec-core (3.5.4) lib/rspec/core/reporter.rb:77:in `report'
rspec-core (3.5.4) lib/rspec/core/runner.rb:111:in `run_specs'
rspec-core (3.5.4) lib/rspec/core/runner.rb:87:in `run'
rspec-core (3.5.4) lib/rspec/core/runner.rb:71:in `run'
rspec-core (3.5.4) lib/rspec/core/runner.rb:45:in `invoke'
rspec-core (3.5.4) exe/rspec:4:in `<top (required)>'
/home/yaroslav/.rbenv/versions/2.3.1/bin/rspec:23:in `load'
/home/yaroslav/.rbenv/versions/2.3.1/bin/rspec:23:in `<main>'
/home/yaroslav/.rbenv/versions/2.3.1/bin/ruby_executable_hooks:15:in `eval'
/home/yaroslav/.rbenv/versions/2.3.1/bin/ruby_executable_hooks:15:in `<main>'

Request

Parameters:

{"id"=>"address"}

Response

Headers:

None