我有一个 Rails 应用程序,在home页面上home/index.html.erb,我显示了模型的一部分workorders。它目前默认为home_controleer.rbwith the action index。
我可以选择workorders_controller.rband 操作index2吗?
home/index.html.erb我在视图文件中试过这个:
<%= render :partial => "workorders/index7", :controller => "workorders", :action => "index2" %>
但它不起作用。