view config/routes.rb @ 308:e855e58d137e

Always include current path when replacing state.
author edogawaconan <me@myconan.net>
date Wed, 19 Feb 2014 20:21: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