-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking on Reports gives me errors #48
Comments
Here is another error When clicking on stock movements I get the following error 42: <%= render 'spree/admin/shared/no_objects_found', 43: resource: Spree::StockMovement, 44: new_resource_url: new_object_url %> 45: 46: <% end %> 47: ' |
Hi so the issue appears to be that the earnings_admin_reports_url is not being created. A workaround for this to get the view to show is to replace "#{key}_admin_reports_url" with "sales_total_admin_reports_url". This is not a complete solution, nor is it the best solution. You would have to hard code every new url. The likely reason is that inside reports controller :earnings is not being initialized as a method.
end So the solution may be to add :earnings as an available report to reports controller |
ActionView::Template::Error (undefined method `earnings_admin_reports_url' for #<#Class:0x007faa92b205e0:0x007faa92b19f60>):
11:
12: <% @reports.each do |key, value| %>
13:
14: <%= link_to value[:name], send("#{key}_admin_reports_url".to_sym) %>
15: <%= value[:description] %>
16:
17: <% end %>
The text was updated successfully, but these errors were encountered: