Class: Nuntius::Admin::ListsController
- Inherits:
-
Nuntius::ApplicationAdminController
- Object
- Nuntius::ApplicationController
- Nuntius::ApplicationAdminController
- Nuntius::Admin::ListsController
- Defined in:
- app/controllers/nuntius/admin/lists_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
19 20 21 22 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 19 def create @list = Nuntius::List.create(list_params) respond_with :admin, @list, action: :edit end |
#edit ⇒ Object
28 29 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 28 def edit end |
#index ⇒ Object
10 11 12 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 10 def index @lists = Nuntius::List.visible.order(:name) end |
#new ⇒ Object
14 15 16 17 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 14 def new @list = Nuntius::List.new render :edit end |
#show ⇒ Object
24 25 26 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 24 def show redirect_to :edit_admin_list, status: :see_other end |
#update ⇒ Object
31 32 33 34 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 31 def update @list.update(list_params) respond_with :admin, @list, action: :edit end |