Created
December 17, 2017 21:24
-
-
Save swlkr/910c06fd0a78bf0865419f74ef54f002 to your computer and use it in GitHub Desktop.
Trail V2 What's New
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; v 1.13.0 | |
(trail/resource :posts) | |
; => | |
; GET /posts => posts/index | |
; GET /posts/:id => posts/show | |
; GET /posts/new => posts/new- | |
; GET /posts/:id/edit => posts/edit | |
; POST /posts => posts/create | |
; PUT /posts/:id => posts/update- | |
; DELETE /posts => posts/delete | |
; v 2.0.0 | |
(trail/resource :posts) | |
; => | |
[ | |
[:get "/posts" posts/index] | |
[:get "/posts/:id" posts/show] | |
[:get "/posts/fresh" posts/fresh] ; this changed from new- to fresh | |
[:get "/posts/:id/edit" posts/edit] | |
[:post "/posts" posts/create] | |
[:put "/posts/:id" posts/change] ; this changed from update- to change | |
[:delete "/posts/:id" posts/delete] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment