comparison config/routes.rb @ 431:68eb23b52864

Rails 5 \o/
author nanaya <me@myconan.net>
date Fri, 13 May 2016 03:56:07 +0900
parents 9fe8c29c27c4
children
comparison
equal deleted inserted replaced
430:6257da6e1aa1 431:68eb23b52864
1 Zeropaste::Application.routes.draw do 1 Rails.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