Nivetha
Nivetha

Reputation: 708

What is the error with rake db:migrate?

I tried executing this command

rake db:migrate

i keep getting the error:

** 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.

How can i fix this?

Upvotes: 3

Views: 183

Answers (1)

NM Pennypacker
NM Pennypacker

Reputation: 6952

If this is rails 4 you should use get or post instead of match in your routes file. For example, make the following changes to your config/routes.rb file:

get 'your/:route' => 'your_controller#your_action'
post 'your/:route' => 'your_controller#your_action'

Upvotes: 1

Related Questions