view config/routes.rb @ 230:1c750d3cde1b

Correct way to test is_private flag.
author Edho Arief <edho@myconan.net>
date Wed, 15 May 2013 14:31:20 +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