1
我試圖從pnr
控制器渲染到web_services
的索引,我也需要指定一個佈局。如何渲染到Ruby on Rails中的另一個控制器的動作2.3.9
我想:
render :layout => "admin", :action => "web_services/index"
render :layout => "admin", :"web_services/index"
render :layout => "admin", :controller => "web_services", :action => "index"
,並沒有什麼作品。
我應該使用什麼?
議決
DONE! 我不得不使用:
redirect_to :layout => "admin", :controller => 'web_services', :action => 'index'