rubyonrailsin

A Ruby and Rails talk

Wednesday, March 31, 2010


[spree-user] related products extension not working

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Hey everyone,

I've just pulled the latest related_products extension from the
RailsDog repo. I've raked the db, restarted the app and navigated to
the product related tab in the admin menu and I've received this error
about some coupon code?

Showing vendor/extensions/related_products/app/views/admin/products/
related.html.erb where line #12 raised:

uninitialized constant
ActionView::Base::CompiledTemplates::AutomaticCouponsExtension

Extracted source (around line #12):

9: <div id="add-line-item">
10: <fieldset>
11: <legend><%= t('add_related_product') %></legend>
12: <div style="float:left;width:<%=
Spree::Extension.descendants.include?(AutomaticCouponsExtension) ?
"40" : "55" %>%;margin-right:5%;">
13: <%= label_tag :add_product_name, t("name_or_sku") %>
14: <%= text_field_tag :add_product_name, {}, :class =>
'fullwidth title' %>
15: <%= hidden_field_tag :add_variant_id %>


Has anyone come across this problem before?

Thanks

Ryan

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive