http://guides.rubyonrails.org/getting_started.html
遇到错误
ActionController::UnknownAction (No action responded to 2. Actions: create, destroy, edit, index, new, show, and update):
解决方法
config/routes.rb 里
map.resources 需写在map.connect前面
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
最后
以上就是贪玩学姐最近收集整理的关于ROR 第一例子遇到 UnknownAction 错误的全部内容,更多相关ROR内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复