Skip to content

Commit 9e5e405

Browse files
author
Gabe Berke-Williams
committed
Use shorter route syntax
1 parent fcf467d commit 9e5e405

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ matches `/email_processor` - or you would like to rename the matched path - you
3131
may add the route to the desired position in routes.rb with the following:
3232

3333
```ruby
34-
match '/email_processor' => 'griddler/emails#create', via: :post
34+
post '/email_processor' => 'griddler/emails#create'
3535
```
3636

3737
Defaults

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Rails.application.routes.draw do
2-
match '/email_processor' => 'griddler/emails#create', via: :post, as: :email_processor
2+
post '/email_processor' => 'griddler/emails#create', as: :email_processor
33
end

0 commit comments

Comments
 (0)