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
17 18 19 20 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 17 def create @list = Nuntius::List.create(list_params) respond_with :admin, @list end |
#edit ⇒ Object
26 27 28 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 26 def edit @list = Nuntius::List.visible.find(params[:id]) end |
#index ⇒ Object
8 9 10 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 8 def index @lists = Nuntius::List.visible.order(:name) end |
#new ⇒ Object
12 13 14 15 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 12 def new @list = Nuntius::List.new render :edit end |
#show ⇒ Object
22 23 24 |
# File 'app/controllers/nuntius/admin/lists_controller.rb', line 22 def show redirect_to :edit_admin_list, status: :see_other end |