安裝美科星編輯器後,當我嘗試啓動我得到以下服務器:安裝在導軌4水星編輯器返回路由錯誤
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"
這裏的routes文件
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文件缺乏理解。
寶石卸載「水銀軌道」爲我工作,我沒有完全消滅我的寶石。 –
只需運行'bundle update mercury-rails'。這就夠了 – catsky