about summary refs log tree commit diff stats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 13:03:43 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 13:03:43 -0400
commite47e83cf6bded3d1924b4d500193e7876833ef83 (patch)
tree058f011637e67455dcd8451fbfa784b5883c6f69 /config/routes.rb
parent528ccde8915cd1ed7a39e137dd4d98869797956a (diff)
downloadthoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.gz
thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.bz2
thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.zip
Created admin panel
Currently allows you to create and edit blogs, including associated
records. Uses a WYSIWYG editor that allows uploading images.

Also included jQuery :(
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb index e409840..449cda1 100644 --- a/config/routes.rb +++ b/config/routes.rb
@@ -1,14 +1,14 @@
1Rails.application.routes.draw do 1Rails.application.routes.draw do
2 namespace :admin do
3 get '/', to: 'dashboard#index'
4
5 resources :blogs, except: [:show]
6 end
7
8 mount Ckeditor::Engine => '/ckeditor'
2 devise_for :users, controllers: { sessions: 'users/sessions' } 9 devise_for :users, controllers: { sessions: 'users/sessions' }
3 10
4 root "records#index" 11 root "records#index"
5 12
6 get 'says/:slug', to: 'entries#show' 13 get 'says/:slug', to: 'entries#show'
7 get 'says/:slug/edit', to: 'entries#edit'
8 put 'says/:slug', to: 'entries#update'
9 patch 'says/:slug', to: 'entries#update'
10
11 # get ':directory/:slug', to: 'entries#show', constraints: lambda { |request|
12 # Entry::DIRECTORIES.include? request.path_parameters['directory']
13 # }
14end 14end