Closed Fodoj closed 12 years ago
More info discovered: problem is that javascript in views/admin/products/related.html.erb is defined before jQuery.
Care to send a pull request?
Sorry, even with jQuery included, ajax response is returned bad, so i can't provide good fix :(
I'm also have the problem. How to fix it?
Unknown action
The action 'index' could not be found for Admin::RelationsController
As i told, it's jquery problem. Check view for properly included js files
do you mean? should include jquery.js?
I have included it.But it have no effects
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' %>
Trying to add related product returns
Unknown action The action 'index' could not be found for Admin::RelationsController