view config/routes.rb @ 475:03bd9d423f3a

Update gems
author nanaya <me@nanaya.pro>
date Thu, 30 Apr 2020 03:55:13 +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