Class: Manage::AttachmentsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Manage::AttachmentsController
- Defined in:
- app/controllers/chaskiq/manage/attachments_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
25 26 27 28 29 30 31 |
# File 'app/controllers/chaskiq/manage/attachments_controller.rb', line 25 def create = @campaign..create(resource_params) respond_to do |format| format.html format.json { render json: } end end |
#index ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/chaskiq/manage/attachments_controller.rb', line 9 def index = @campaign..page(params[:page]).per(50) respond_to do |format| format.html format.json { render json: } end end |
#new ⇒ Object
21 22 23 |
# File 'app/controllers/chaskiq/manage/attachments_controller.rb', line 21 def new = @campaign..new end |
#show ⇒ Object
17 18 19 |
# File 'app/controllers/chaskiq/manage/attachments_controller.rb', line 17 def show = @campaign..find(params[:id]) end |