From b7aeceaf67e36efefbec6fbfc2b83503673b9490 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 27 Mar 2021 13:14:14 +0000 Subject: [PATCH] Add enterprise_fees helper Fixes: Failure/Error: super ActionView::Template::Error: undefined method `angular_id' for #<#:0x00007f57c55754f8> # ./app/helpers/application_helper.rb:20:in `method_missing' # ./app/views/admin/enterprise_fees/index.html.haml:32:in `block (2 levels) in _app_views_admin_enterprise_fees_index_html_haml__3854507252304647884_70007474860840' # ./app/helpers/angular_form_builder.rb:6:in `ng_fields_for' # ./app/views/admin/enterprise_fees/index.html.haml:28:in `block in _app_views_admin_enterprise_fees_index_html_haml__3854507252304647884_70007474860840' # ./app/helpers/application_helper.rb:11:in `ng_form_for' # ./app/views/admin/enterprise_fees/index.html.haml:4:in `_app_views_admin_enterprise_fees_index_html_haml__3854507252304647884_70007474860840' # ./lib/open_food_network/rack_request_blocker.rb:36:in `call' # ------------------ # --- Caused by: --- # NoMethodError: # undefined method `angular_id' for #<#:0x00007f57c55754f8> # ./app/helpers/application_helper.rb:20:in `method_missing' --- app/controllers/spree/admin/base_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/spree/admin/base_controller.rb b/app/controllers/spree/admin/base_controller.rb index 1eeabc6225..fb6d15083f 100644 --- a/app/controllers/spree/admin/base_controller.rb +++ b/app/controllers/spree/admin/base_controller.rb @@ -9,6 +9,7 @@ module Spree helper 'admin/injection' helper 'admin/orders' helper 'admin/enterprises' + helper 'enterprise_fees' layout '/spree/layouts/admin'