view config/routes.rb @ 493:30cf29ac9294

public-path confuses sprockets
author nanaya <me@nanaya.net>
date Tue, 17 Jan 2023 02:52:30 +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