annotate config/routes.rb @ 32:59ef6698fa0d

Rescue from not unique error by redirecting to previously pasted paste.
author Edho Arief <edho@myconan.net>
date Mon, 10 Sep 2012 04:14:31 +0700
parents 418105d973f1
children a81fb558f954
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
8
418105d973f1 Simplified routes.
Edho Arief <edho@myconan.net>
parents: 4
diff changeset
2 resources :pastes, :only => [:show, :new, :create], :path => '/'
4
23178d3de796 Slim controller (this app barely has any function)
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
3 root :to => 'pastes#new'
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 end