I'm using Spree 1.1.1 and Rails 3.2.3 and getting a "No method error" when I upload a digital product. The product does load properly and get put in private/digitals but when it goes to render the page I get:
NoMethodError in Spree/admin/digitals#index
Showing /Users/lindensmith/.bundler/ruby/1.9.1/spree_digital-49ac794ba76c/app/views/spree/admin/digitals/index.html.erb where line #15 raised:
undefined method `digital' for #Spree::Variant:0x48d0078
Extracted source (around line #15):
12:
13: <% if @product.master.digital? %>
14: A digital version of this product currently exists:
15: <%= render @product.master.digital %>
16: <% end %>
17:
18: <%= render 'form', :variant => @product.master %>
Thanks! That's a pretty subtle bug- I've been away from rails for a while and it looked pretty normal to see singular referring to a plural table name.
I'm using Spree 1.1.1 and Rails 3.2.3 and getting a "No method error" when I upload a digital product. The product does load properly and get put in private/digitals but when it goes to render the page I get:
NoMethodError in Spree/admin/digitals#index
Showing /Users/lindensmith/.bundler/ruby/1.9.1/spree_digital-49ac794ba76c/app/views/spree/admin/digitals/index.html.erb where line #15 raised:
undefined method `digital' for #Spree::Variant:0x48d0078
Extracted source (around line #15):
12: 13: <% if @product.master.digital? %> 14: A digital version of this product currently exists: 15: <%= render @product.master.digital %> 16: <% end %> 17: 18: <%= render 'form', :variant => @product.master %>