view config/routes.rb @ 454:3c5e71483f15

Update gems
author nanaya <me@nanaya.pro>
date Fri, 08 Sep 2017 21:18:03 +0900
parents 68eb23b52864
children d2ef59c9a4b4
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