Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我尝试加载页面时看到的内容 ( http://localhost:3000/analytics):
http://localhost:3000/analytics
_order_charts.html.erb我的static_pages 目录中有一个名为的文件。我究竟做错了什么?
_order_charts.html.erb
<%= render 'static_pages/order_charts' %>
或者
<%= render partial: 'static_pages/order_charts' %>
您不需要包含下划线,rails 就是这样聪明的。