From e47e83cf6bded3d1924b4d500193e7876833ef83 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 13:03:43 -0400 Subject: 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 :( --- config/routes.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'config/routes.rb') 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 @@ Rails.application.routes.draw do + namespace :admin do + get '/', to: 'dashboard#index' + + resources :blogs, except: [:show] + end + + mount Ckeditor::Engine => '/ckeditor' devise_for :users, controllers: { sessions: 'users/sessions' } root "records#index" get 'says/:slug', to: 'entries#show' - get 'says/:slug/edit', to: 'entries#edit' - put 'says/:slug', to: 'entries#update' - patch 'says/:slug', to: 'entries#update' - - # get ':directory/:slug', to: 'entries#show', constraints: lambda { |request| - # Entry::DIRECTORIES.include? request.path_parameters['directory'] - # } end -- cgit 1.4.1