diff config/routes.rb @ 4:23178d3de796

Slim controller (this app barely has any function)
author Edho Arief <edho@myconan.net>
date Sun, 26 Aug 2012 11:33:42 -0700
parents 42de15334db1
children 418105d973f1
line wrap: on
line diff
--- a/config/routes.rb	Sun Aug 26 11:29:31 2012 -0700
+++ b/config/routes.rb	Sun Aug 26 11:33:42 2012 -0700
@@ -1,5 +1,7 @@
 Zeropaste::Application.routes.draw do
-  resources :pastes
+  resources :pastes, :only => [:show, :new, :create]
+  get '/:id' => 'pastes#show', :constraints => { :id => /\d+/ }
+  root :to => 'pastes#new'
 
   # The priority is based upon order of creation:
   # first created -> highest priority.