annotate config/routes.rb @ 257:2d5c09a73958

Rely on implicit to_param.
author edogawaconan <me@myconan.net>
date Tue, 15 Oct 2013 18:02:25 +0900
parents 953d284ec195
children 9fe8c29c27c4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 Zeropaste::Application.routes.draw do
208
953d284ec195 Revamp the routing
Edho Arief <edho@myconan.net>
parents: 189
diff changeset
2 post '(pastes)' => 'pastes#create', format: /(html|json|xml|txt)/, as: 'pastes'
953d284ec195 Revamp the routing
Edho Arief <edho@myconan.net>
parents: 189
diff changeset
3 resources :pastes, only: [:show, :destroy], path: "/"
953d284ec195 Revamp the routing
Edho Arief <edho@myconan.net>
parents: 189
diff changeset
4 root to: 'pastes#new'
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 end