view config/routes.rb @ 443:be849fa80505

Update to rails 5.0.1
author nanaya <me@myconan.net>
date Wed, 21 Dec 2016 16:20:44 +0900
parents 68eb23b52864
children
line wrap: on
line source

Rails.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"
end