Getting the following error when attempting to edit an option_type in Spree
v.13.2-beta:

ArgumentError in Spree/admin/option_types#edit

Showing *
/home/jet/RailsApps/spree/spree/core/app/views/spree/admin/option_types/_option_value_fields.html.erb
* where line *#8* raised:

wrong number of arguments (3 for 2)

Extracted source (around line *#8*):

5: </td>
6: <td class="name"><%= f.text_field :name %></td>
7: <td class="presentation"><%= f.text_field :presentation %></td>
8: <td class="actions"><%= link_to_remove_fields t(:remove), f, :no_text => true %></td>
9: </tr>

Stack dump:

/home/jet/.rvm/gems/ruby-1.9.3-p194@spree-1-3-stable/bundler/gems/spree_flexi_variants-50e184fa9b73/app/helpers/spree/admin/base_helper_decorator.rb:4:in `link_to_remove_fields'
/home/jet/RailsApps/spree/spree/core/app/views/spree/admin/option_types/_option_value_fields.html.erb:8:in `_982afa6dfb4c48bbb849a59cc72e8646'
actionpack (3.2.11) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.11) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.11) lib/action_view/template.rb:143:in `render'
deface (0.9.1) lib/deface/action_view_extensions.rb:37:in `render'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:237:in `render'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:41:in `render_partial'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:15:in `render'
actionpack (3.2.11) lib/action_view/helpers/rendering_helper.rb:24:in `render'
/home/jet/RailsApps/spree/spree/core/app/views/spree/admin/option_types/edit.html.erb:42:in `block (2 levels) in _9b2065a401034ce90064dccc845e5693'
actionpack (3.2.11) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.2.11) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
actionpack (3.2.11) lib/action_view/helpers/capture_helper.rb:40:in `capture'
actionpack (3.2.11) lib/action_view/helpers/form_helper.rb:607:in `fields_for'
actionpack (3.2.11) lib/action_view/helpers/form_helper.rb:1467:in `fields_for_nested_model'
actionpack (3.2.11) lib/action_view/helpers/form_helper.rb:1453:in `block in fields_for_with_nested_attributes'
activerecord (3.2.11) lib/active_record/associations/collection_proxy.rb:89:in `each'
activerecord (3.2.11) lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
actionpack (3.2.11) lib/action_view/helpers/form_helper.rb:1452:in `fields_for_with_nested_attributes'
actionpack (3.2.11) lib/action_view/helpers/form_helper.rb:1302:in `fields_for'
/home/jet/RailsApps/spree/spree/core/app/views/spree/admin/option_types/edit.html.erb:41:in `block in _9b2065a401034ce90064dccc845e5693'
actionpack (3.2.11) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.2.11) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
actionpack (3.2.11) lib/action_view/helpers/capture_helper.rb:40:in `capture'
actionpack (3.2.11) lib/action_view/helpers/form_helper.rb:607:in `fields_for'
actionpack (3.2.11) lib/action_view/helpers/form_helper.rb:378:in `form_for'
/home/jet/RailsApps/spree/spree/core/app/views/spree/admin/option_types/edit.html.erb:20:in `_9b2065a401034ce90064dccc845e5693'
actionpack (3.2.11) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.11) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.11) lib/action_view/template.rb:143:in `render'
deface (0.9.1) lib/deface/action_view_extensions.rb:37:in `render'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:18:in `render'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:110:in `_render_template'
actionpack (3.2.11) lib/action_controller/metal/streaming.rb:225:in `_render_template'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:103:in `render_to_body'
actionpack (3.2.11) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
actionpack (3.2.11) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:88:in `render'
actionpack (3.2.11) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.2.11) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/jet/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (3.2.11) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/jet/RailsApps/spree/spree/core/app/controllers/spree/admin/resource_controller.rb:21:in `block (2 levels) in edit'
/home/jet/RailsApps/spree/spree/core/lib/spree/core/controller_helpers/respond_with.rb:14:in `call'
/home/jet/RailsApps/spree/spree/core/lib/spree/core/controller_helpers/respond_with.rb:14:in `respond_with'
/home/jet/RailsApps/spree/spree/core/app/controllers/spree/admin/resource_controller.rb:20:in `edit'
actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.11) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.11) lib/active_support/callbacks.rb:491:in `_run__4486055397185731198__process_action__3830210147924313924__callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.11) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.11) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.11) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.11) 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.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
/home/jet/RailsApps/spree/spree/core/lib/spree/core/middleware/redirect_legacy_product_url.rb:13:in `call'
/home/jet/RailsApps/spree/spree/core/lib/spree/core/middleware/seo_assist.rb:27:in `call'
railties (3.2.11) lib/rails/engine.rb:479:in `call'
railties (3.2.11) 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.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
omniauth (1.1.1) lib/omniauth/strategy.rb:177:in `call!'
omniauth (1.1.1) lib/omniauth/strategy.rb:157:in `call'
omniauth (1.1.1) lib/omniauth/strategy.rb:177:in `call!'
omniauth (1.1.1) lib/omniauth/strategy.rb:157:in `call'
omniauth (1.1.1) lib/omniauth/strategy.rb:177:in `call!'
omniauth (1.1.1) lib/omniauth/strategy.rb:157:in `call'
omniauth (1.1.1) lib/omniauth/strategy.rb:177:in `call!'
omniauth (1.1.1) lib/omniauth/strategy.rb:157:in `call'
warden (1.1.1) lib/warden/manager.rb:35:in `block in call'
warden (1.1.1) lib/warden/manager.rb:34:in `catch'
warden (1.1.1) lib/warden/manager.rb:34:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.4) lib/rack/etag.rb:23:in `call'
rack (1.4.4) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.4) lib/rack/session/abstract/id.rb:210:in `context'
rack (1.4.4) lib/rack/session/abstract/id.rb:205:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call'
activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__1772512631521733569__call__4259424655447260117__callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.4) lib/rack/lock.rb:15:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
railties (3.2.11) lib/rails/engine.rb:479:in `call'
railties (3.2.11) lib/rails/application.rb:223:in `call'
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
rack (1.4.4) lib/rack/lint.rb:48:in `_call'
rack (1.4.4) lib/rack/lint.rb:36:in `call'
rack (1.4.4) lib/rack/showexceptions.rb:24:in `call'
rack (1.4.4) lib/rack/commonlogger.rb:33:in `call'
rack (1.4.4) lib/rack/chunked.rb:43:in `call'
rack (1.4.4) lib/rack/content_length.rb:14:in `call'
unicorn (4.5.0) lib/unicorn/http_server.rb:552:in `process_client'
unicorn (4.5.0) lib/unicorn/http_server.rb:628:in `worker_loop'
unicorn (4.5.0) lib/unicorn/http_server.rb:500:in `spawn_missing_workers'
unicorn (4.5.0) lib/unicorn/http_server.rb:142:in `start'
unicorn (4.5.0) bin/unicorn:121:in `<top (required)>'
bin/unicorn:16:in `load'
bin/unicorn:16:in `<main>'

jet


--

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJan 17, '13 at 8:17a
activeJan 17, '13 at 8:17a
posts1
users1
websitespreecommerce.com
irc#RubyOnRails

1 user in discussion

Jet: 1 post

People

Translate

site design / logo © 2022 Grokbase