diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-07-04 11:46:13 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-07-04 11:46:13 -0400 |
commit | e11dedec034c4180985adf4a9f176b07121f0a41 (patch) | |
tree | 7f4320d562f37775cbc8ae390540da03a2d92d77 /config | |
parent | d48adb741c5c30ba3f2d3c039a7e342b43add352 (diff) | |
download | thoughts-e11dedec034c4180985adf4a9f176b07121f0a41.tar.gz thoughts-e11dedec034c4180985adf4a9f176b07121f0a41.tar.bz2 thoughts-e11dedec034c4180985adf4a9f176b07121f0a41.zip |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
2 | namespace :admin do | 2 | namespace :admin do |
3 | get '/', to: 'dashboard#index' | 3 | get '/', to: 'dashboard#index' |
4 | 4 | ||
5 | resources :blogs, except: [:show] do | 5 | resources :blogs do |
6 | collection do | 6 | collection do |
7 | get 'drafts' | 7 | get 'drafts' |
8 | end | 8 | end |
@@ -22,9 +22,9 @@ Rails.application.routes.draw do | |||
22 | 22 | ||
23 | root "records#index" | 23 | root "records#index" |
24 | 24 | ||
25 | get 'says/:slug', to: 'blogs#show' | 25 | get 'says/:slug', to: 'blogs#show', as: :blog |
26 | 26 | ||
27 | get 'thinks/:slug', to: 'streams#show' | 27 | get 'thinks/:slug', to: 'streams#show', as: :stream |
28 | 28 | ||
29 | mount Pokeviewer::Engine => '/poke3' | 29 | mount Pokeviewer::Engine => '/poke3' |
30 | end | 30 | end |