1
我试图与具有额外的参数之一,更换控制器的编辑动作,但我越来越:未定义的局部变量或方法`”为#<ActionDispatch ::路由::映射:0x007fd3b4516a00>
undefined local variable or method `on' for #<ActionDispatch::Routing::Mapper:0x007fd3b4516a00>
这里是routes.rb中部分:
resources :structures, except: :edit do
get '/:doctype' => :edit, on: :edit
end
的问题是:编辑。使用另一个动作:完美的新作品。