安装 Mecury Editor 后,当我尝试启动服务器时,我得到以下信息:
in `normalize_conditions!': You should not use the `match` method in your router without specifying an HTTP method. (RuntimeError)
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"
这是路由文件
Bootcanvise::Application.routes.draw do
Mercury::Engine.routes
resources :newsletters
resources :advertisers
devise_for :users
get "home/index"
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
root 'home#index'
end
我试过编辑路线文件,但我一直收到同样的错误
我预计这与对 routes.rb 文件缺乏了解有关。