Reputation: 8131
Here is what I see when I try to load the page (http://localhost:3000/analytics
):
I have a file named _order_charts.html.erb
in my static_pages directory. What am I doing wrong?
Upvotes: 0
Views: 129
Reputation: 2573
<%= render 'static_pages/order_charts' %>
or
<%= render partial: 'static_pages/order_charts' %>
You do not need to include the underscore, rails is smart like that.
Upvotes: 2