Class: Admin::ImagesController
- Inherits:
-
AdminController
- Object
- AdminController
- Admin::ImagesController
- Defined in:
- app/controllers/admin/images_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/controllers/admin/images_controller.rb', line 15 def create @image = Image.create(image_params) respond_to do |format| format.json { render_image_json(@image) } end end |
#destroy ⇒ Object
30 |
# File 'app/controllers/admin/images_controller.rb', line 30 def destroy; end |
#edit ⇒ Object
13 |
# File 'app/controllers/admin/images_controller.rb', line 13 def edit; end |
#index ⇒ Object
7 |
# File 'app/controllers/admin/images_controller.rb', line 7 def index; end |
#new ⇒ Object
11 |
# File 'app/controllers/admin/images_controller.rb', line 11 def new; end |
#show ⇒ Object
9 |
# File 'app/controllers/admin/images_controller.rb', line 9 def show; end |
#update ⇒ Object
23 24 25 26 27 28 |
# File 'app/controllers/admin/images_controller.rb', line 23 def update @image.update(image_params) respond_to do |format| format.json { render_image_json(@image) } end end |