comparison config/routes.rb @ 499:d2ef59c9a4b4

Use rails rubocop
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:33:27 +0900
parents 68eb23b52864
children
comparison
equal deleted inserted replaced
498:300bac944674 499:d2ef59c9a4b4
1 Rails.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