[英]What is the error with rake db:migrate?
我試着執行這個命令
rake db:migrate
我一直收到錯誤:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
You should not use the `match` method in your router without specifying an HTTP method.
我怎樣才能解決這個問題?
如果這是rails 4,你應該在路由文件中使用get或post而不是match。 例如,對config / routes.rb文件進行以下更改:
get 'your/:route' => 'your_controller#your_action'
post 'your/:route' => 'your_controller#your_action'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.