【发布时间】:2013-05-06 18:34:38
【问题描述】:
我正在尝试在炼油厂的另一个页面上重用炼油厂引擎。在我包含的 routes.rb 中:
match 'locations/:location_id/' => "locations/#index"
这样做的正确方法是什么?
【问题讨论】:
标签: ruby-on-rails crud refinerycms refinery
我正在尝试在炼油厂的另一个页面上重用炼油厂引擎。在我包含的 routes.rb 中:
match 'locations/:location_id/' => "locations/#index"
这样做的正确方法是什么?
【问题讨论】:
标签: ruby-on-rails crud refinerycms refinery
您应该在引擎路由文件中创建您的路由。
通常你只需要添加
resources :locations
【讨论】: