Mercurial > zeropaste
comparison config/routes.rb @ 309:9fe8c29c27c4
Standardize syntax.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 12 Mar 2014 19:52:28 +0900 |
parents | 953d284ec195 |
children | 68eb23b52864 |
comparison
equal
deleted
inserted
replaced
308:e855e58d137e | 309:9fe8c29c27c4 |
---|---|
1 Zeropaste::Application.routes.draw do | 1 Zeropaste::Application.routes.draw do |
2 post '(pastes)' => 'pastes#create', format: /(html|json|xml|txt)/, as: 'pastes' | 2 post "(pastes)" => "pastes#create", :format => /(html|json|xml|txt)/, :as => "pastes" |
3 resources :pastes, only: [:show, :destroy], path: "/" | 3 resources :pastes, :only => [:show, :destroy], :path => "/" |
4 root to: 'pastes#new' | 4 root :to => "pastes#new" |
5 end | 5 end |