Class: Api::V1::ImagesController

Inherits:
BaseController
  • Object
show all
Includes:
ActionController::HttpAuthentication::Basic::ControllerMethods, ActionController::HttpAuthentication::Token::ControllerMethods
Defined in:
app/controllers/api/v1/images_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#catalog_for_request, #error!, #locale_for_request, #logger, #render_bad_request_response, #render_internal_server_error, #render_not_found_response, #render_result, #render_unprocessable_entity_response, #set_locale, #store_for_request, #underscore_params

Instance Method Details

#showObject



8
9
10
11
# File 'app/controllers/api/v1/images_controller.rb', line 8

def show
  @image = Image.friendly.find(params[:id])
  render json: @image
end