From e11dedec034c4180985adf4a9f176b07121f0a41 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 4 Jul 2018 11:46:13 -0400 Subject: Blog drafts no longer require slugs They do still technically require titles, but the engine will fill in "Untitled draft" if it is left blank. Unpublished posts can be viewed at a different URL than published posts would be. Quick links to view published and unpublished posts have been added to the admin panel. refs #1 --- config/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 37e7f90..ac5b84d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,7 +2,7 @@ Rails.application.routes.draw do namespace :admin do get '/', to: 'dashboard#index' - resources :blogs, except: [:show] do + resources :blogs do collection do get 'drafts' end @@ -22,9 +22,9 @@ Rails.application.routes.draw do root "records#index" - get 'says/:slug', to: 'blogs#show' + get 'says/:slug', to: 'blogs#show', as: :blog - get 'thinks/:slug', to: 'streams#show' + get 'thinks/:slug', to: 'streams#show', as: :stream mount Pokeviewer::Engine => '/poke3' end -- cgit 1.4.1