Added feature to add content block to headings in sidebar -- rebase

This commit is contained in:
Milber Champutiz Burbano
2018-11-27 09:37:35 -05:00
parent e23fbc8d58
commit 9f455b9165
25 changed files with 289 additions and 48 deletions

View File

@@ -211,6 +211,9 @@ namespace :admin do
resources :pages, except: [:show]
resources :images, only: [:index, :update, :destroy]
resources :content_blocks, except: [:show]
delete '/heading_content_blocks/:id', to: 'content_blocks#delete_heading_content_block', as: 'delete_heading_content_block'
get '/edit_heading_content_blocks/:id', to: 'content_blocks#edit_heading_content_block', as: 'edit_heading_content_block'
put '/update_heading_content_blocks/:id', to: 'content_blocks#update_heading_content_block', as: 'update_heading_content_block'
resources :information_texts, only: [:index] do
post :update, on: :collection
end