Class: Admin::MenusController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::MenusController
- Defined in:
- app/controllers/admin/menus_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/controllers/admin/menus_controller.rb', line 23 def create @menu = Effective::Menu.new() @page_title = 'New Menu' if @menu.save flash[:success] = 'Successfully created menu' redirect_to effective_pages.(@menu) else flash.now[:danger] = 'Unable to create menu' render :action => :new end end |
#index ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/admin/menus_controller.rb', line 9 def index @datatable = EffectiveMenusDatatable.new(self) @page_title = 'Menus' end |