Skip to content

Instantly share code, notes, and snippets.

@biagidp
Created September 23, 2013 04:02
Show Gist options
  • Save biagidp/6666367 to your computer and use it in GitHub Desktop.
Save biagidp/6666367 to your computer and use it in GitHub Desktop.
NoMethodError in Spree/admin/stock_locations#new
Showing /home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/views/spree/admin/stock_locations/_form.html.erb where line #10 raised:
undefined method `admin_name' for #<Spree::StockLocation:0x000000064901a0>
Extracted source (around line #10):
7: <% end %><br>
8: <%= f.field_container :admin_name do %>
9: <%= f.label :admin_name, Spree.t(:internal_name) %>
10: <%= f.text_field :admin_name, :class => 'fullwidth', :label => false %>
11: <% end %>
12: </div>
13: <div class="omega four columns">
Trace of template inclusion: /home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/views/spree/admin/stock_locations/new.html.erb
Rails.root: /home/david/source/art_to_aid/product_submission
Application Trace | Framework Trace | Full Trace
activemodel (3.2.14) lib/active_model/attribute_methods.rb:407:in `method_missing'
activerecord (3.2.14) lib/active_record/attribute_methods.rb:149:in `method_missing'
actionpack (3.2.14) lib/action_view/helpers/form_helper.rb:1159:in `value_before_type_cast'
actionpack (3.2.14) lib/action_view/helpers/form_helper.rb:1147:in `value_before_type_cast'
actionpack (3.2.14) lib/action_view/helpers/form_helper.rb:1041:in `block in to_input_field_tag'
actionpack (3.2.14) lib/action_view/helpers/form_helper.rb:1041:in `fetch'
actionpack (3.2.14) lib/action_view/helpers/form_helper.rb:1041:in `to_input_field_tag'
actionpack (3.2.14) lib/action_view/helpers/form_helper.rb:690:in `text_field'
actionpack (3.2.14) lib/action_view/helpers/form_helper.rb:1283:in `text_field'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/views/spree/admin/stock_locations/_form.html.erb:10:in `block in _d2ca59622666b0f86be2a6c45975151d'
actionpack (3.2.14) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.2.14) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
actionpack (3.2.14) lib/action_view/helpers/capture_helper.rb:40:in `capture'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/helpers/spree/admin/base_helper.rb:10:in `field_container'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/config/initializers/form_builder.rb:6:in `field_container'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/views/spree/admin/stock_locations/_form.html.erb:8:in `_d2ca59622666b0f86be2a6c45975151d'
actionpack (3.2.14) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.14) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.14) lib/action_view/template.rb:143:in `render'
deface (0.9.1) lib/deface/action_view_extensions.rb:37:in `render'
actionpack (3.2.14) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
actionpack (3.2.14) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
actionpack (3.2.14) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.14) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.14) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.14) lib/action_view/renderer/partial_renderer.rb:237:in `render'
actionpack (3.2.14) lib/action_view/renderer/renderer.rb:41:in `render_partial'
actionpack (3.2.14) lib/action_view/renderer/renderer.rb:15:in `render'
actionpack (3.2.14) lib/action_view/helpers/rendering_helper.rb:24:in `render'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/views/spree/admin/stock_locations/new.html.erb:13:in `block in _e803ac1d5b7109af79500869386788a5'
actionpack (3.2.14) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.2.14) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
actionpack (3.2.14) lib/action_view/helpers/capture_helper.rb:40:in `capture'
actionpack (3.2.14) lib/action_view/helpers/form_helper.rb:378:in `form_for'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/views/spree/admin/stock_locations/new.html.erb:11:in `_e803ac1d5b7109af79500869386788a5'
actionpack (3.2.14) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.14) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.14) lib/action_view/template.rb:143:in `render'
deface (0.9.1) lib/deface/action_view_extensions.rb:37:in `render'
actionpack (3.2.14) lib/action_view/renderer/template_renderer.rb:48:in `block (2 levels) in render_template'
actionpack (3.2.14) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.14) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.14) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.14) lib/action_view/renderer/template_renderer.rb:47:in `block in render_template'
actionpack (3.2.14) lib/action_view/renderer/template_renderer.rb:55:in `render_with_layout'
actionpack (3.2.14) lib/action_view/renderer/template_renderer.rb:46:in `render_template'
actionpack (3.2.14) lib/action_view/renderer/template_renderer.rb:19:in `render'
actionpack (3.2.14) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.2.14) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.2.14) lib/abstract_controller/rendering.rb:110:in `_render_template'
actionpack (3.2.14) lib/action_controller/metal/streaming.rb:225:in `_render_template'
actionpack (3.2.14) lib/abstract_controller/rendering.rb:103:in `render_to_body'
actionpack (3.2.14) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
actionpack (3.2.14) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
actionpack (3.2.14) lib/abstract_controller/rendering.rb:88:in `render'
actionpack (3.2.14) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.2.14) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (3.2.14) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
activerecord (3.2.14) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/controllers/spree/admin/resource_controller.rb:14:in `block (2 levels) in new'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/core/lib/spree/core/controller_helpers/respond_with.rb:14:in `call'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/core/lib/spree/core/controller_helpers/respond_with.rb:14:in `respond_with'
/home/david/.rvm/gems/ruby-1.9.3-p392/bundler/gems/spree-bb4dbf49e443/backend/app/controllers/spree/admin/resource_controller.rb:13:in `new'
actionpack (3.2.14) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.14) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.14) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.14) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.14) lib/active_support/callbacks.rb:513:in `_run__1765415970470243776__process_action__1777108024554266914__callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.14) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.14) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.14) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.14) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.14) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.14) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.14) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.14) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.14) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.14) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.14) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.14) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.14) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.14) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:36:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:608:in `call'
railties (3.2.14) lib/rails/engine.rb:484:in `call'
railties (3.2.14) lib/rails/railtie/configurable.rb:30:in `method_missing'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:608: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'
actionpack (3.2.14) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.5) lib/rack/etag.rb:23:in `call'
rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.14) lib/action_dispatch/middleware/params_parser.rb:21:in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment