annotate config/routes.rb @ 238:aab527b5ccdc

Lock bootstrap version to 2.3.x.
author edogawaconan <me@myconan.net>
date Mon, 07 Oct 2013 12:53:00 +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