# HG changeset patch # User edogawaconan # Date 1394621548 -32400 # Node ID 9fe8c29c27c48c75ee33378f2c640fbe2a380f1f # Parent e855e58d137e3a92cc06f87b7f200b25e5e53786 Standardize syntax. diff -r e855e58d137e -r 9fe8c29c27c4 config/routes.rb --- a/config/routes.rb Wed Feb 19 20:21:20 2014 +0900 +++ b/config/routes.rb Wed Mar 12 19:52:28 2014 +0900 @@ -1,5 +1,5 @@ Zeropaste::Application.routes.draw do - post '(pastes)' => 'pastes#create', format: /(html|json|xml|txt)/, as: 'pastes' - resources :pastes, only: [:show, :destroy], path: "/" - root to: 'pastes#new' + post "(pastes)" => "pastes#create", :format => /(html|json|xml|txt)/, :as => "pastes" + resources :pastes, :only => [:show, :destroy], :path => "/" + root :to => "pastes#new" end