comparison 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
comparison
equal deleted inserted replaced
3:04a43fae272c 4:23178d3de796
1 Zeropaste::Application.routes.draw do 1 Zeropaste::Application.routes.draw do
2 resources :pastes 2 resources :pastes, :only => [:show, :new, :create]
3 get '/:id' => 'pastes#show', :constraints => { :id => /\d+/ }
4 root :to => 'pastes#new'
3 5
4 # The priority is based upon order of creation: 6 # The priority is based upon order of creation:
5 # first created -> highest priority. 7 # first created -> highest priority.
6 8
7 # Sample of regular route: 9 # Sample of regular route: