change readme instructions to use `get` in routes
Rails 4 deprecates `match` in routes, and this redirect will always be a `get`, so I think it would be helpful to start promoting this method.
This commit is contained in:
parent
fe14887737
commit
037adc974d
|
@ -93,7 +93,7 @@ steps are necessary for your application. For example, in a Rails app I
|
|||
would add a line in my `routes.rb` file like this:
|
||||
|
||||
```ruby
|
||||
match '/auth/:provider/callback', to: 'sessions#create'
|
||||
get '/auth/:provider/callback', to: 'sessions#create'
|
||||
```
|
||||
|
||||
And I might then have a `SessionsController` with code that looks
|
||||
|
|
Loading…
Reference in New Issue