config/routes.rb
Railbook::Application.routes.draw do
match ':controller(/:action(/:id(.:format)))'
end
以下のようなRuntimeErrorが表示される。
You should not use the `match` method in your router without specifying an HTTP method. If you want to expose your action to both GET and POST, add `via: [:get, :post]` option. If you want to expose your action to GET, use `get` in the router: Instead of: match "controller#action" Do: get "controller#action"
以下のようにroutes.rb
を修正
config/routes.rb
Railbook::Application.routes.draw do
get ':controller(/:action(/:id(.:format)))'
end
参考