I have a Rails app where on the home
page home/index.html.erb
, I show a partial for the model workorders
. It currently defaults to the home_controleer.rb
with the action index
.
Can I select the workorders_controller.rb
and action index2
?
I tried this in the home/index.html.erb
view file:
<%= render :partial => "workorders/index7", :controller => "workorders", :action => "index2" %>
But it's not working.