spree/spree — Issue #1047: Can editing existing promotion with action associated.
Author: BDQ
Created: 2012-01-29 18:29:14+00:00
State: open

When trying to edit a promotion with a Promotion Action associated, I get the following error:

Showing /Users/briandquinn/Development/spree/promo/app/views/spree/admin/promotions/_promotion_action.html.erb where line #1 raised:

undefined method `demodulize' for #

Extracted source (around line #1):

1:

2:
3: <%= link_to_with_icon 'cross', '', spree.admin_promotion_promotion_action_path(@promotion, promotion_action), :remote => true, :method => :delete %>
4:

Trace of template inclusion: /Users/briandquinn/Development/spree/promo/app/views/spree/admin/promotions/_actions.html.erb, /Users/briandquinn/Development/spree/promo/app/views/spree/admin/promotions/edit.html.erb