Mik*_*yth 2 routing activescaffold ruby-on-rails-3
我正在尝试使用Rails 3.0的ActiveScaffold,仍然试图让它工作.我收到了一个错误
No route matches {:active_scaffold=>true, :action=>"show_search", :controller=>"locations"}
Run Code Online (Sandbox Code Playgroud)
当我浏览到http:// localhost:3000/locations.我的routes.rb中有"resources:locations,:active_scaffold => true",但我不知道这是否是Rails 3.0的正确语法.
我从来没有使用过ActiveScaffold并且没有致力于它,所以另一个问题是是否有更好的替代品 - 或者这取决于安装的具体情况?
There is apparently a new version of the Rails 3.0 fork of ActiveScaffold, or perhaps just new documentation I found. The routing should be
resources :locations do as_routes end
Run Code Online (Sandbox Code Playgroud)
If you generate a model using AS from the beginning, it inserts this for you.
| 归档时间: |
|
| 查看次数: |
1596 次 |
| 最近记录: |