Skip to content

Deprecated match directive in config/routes.rb fails altogether on Rails 4.x #1

@stevemadere

Description

@stevemadere

Running 'rake routes' after installing the plugin and modifying users_controller results
in this error message with Rails >= 4.0

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions