spree-contrib / spree_related_products

Related products extension for Spree Commerce.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
149 stars 241 forks source link

Not working with edge spree #14

Closed Fodoj closed 12 years ago

Fodoj commented 13 years ago

Trying to add related product returns

Unknown action The action 'index' could not be found for Admin::RelationsController

Fodoj commented 13 years ago

More info discovered: problem is that javascript in views/admin/products/related.html.erb is defined before jQuery.

ajjahn commented 13 years ago

Care to send a pull request?

Fodoj commented 13 years ago

Sorry, even with jQuery included, ajax response is returned bad, so i can't provide good fix :(

grantchen commented 13 years ago

I'm also have the problem. How to fix it?

Unknown action

The action 'index' could not be found for Admin::RelationsController

Fodoj commented 13 years ago

As i told, it's jquery problem. Check view for properly included js files

grantchen commented 13 years ago

do you mean? should include jquery.js?

I have included it.But it have no effects

grantchen commented 13 years ago

i have resolved the problem.

views/admin/products/related.html

<%= javascript_include_tag '/admin/javascripts/orders/edit.js' %>
<%= stylesheet_link_tag '/admin/stylesheets/edit_orders.css' %>

->

<%= javascript_include_tag '/javascripts/admin/orders/edit.js' %>
<%= stylesheet_link_tag '/stylesheets/admin/edit_orders.css' %>