view config/routes.rb @ 257:2d5c09a73958

Rely on implicit to_param.
author edogawaconan <me@myconan.net>
date Tue, 15 Oct 2013 18:02:25 +0900
parents 953d284ec195
children 9fe8c29c27c4
line wrap: on
line source

Zeropaste::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