Class: Admin::ImagesController
Instance Attribute Summary
#current_user
Instance Method Summary
collapse
#redirect, underscore
#disable_static_cache!
#policy, #verify_policy, #verify_policy_with_proc
inc_number_of_requests, original_title
#render_error
#authenticate!, #deauthenticate!, #logged_in?
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
|