Class: LinkThumbnailer::PreviewsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- LinkThumbnailer::PreviewsController
- Defined in:
- app/controllers/link_thumbnailer/previews_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 |
# File 'app/controllers/link_thumbnailer/previews_controller.rb', line 6 def create @preview = LinkThumbnailer.generate(params[:url]) render json: @preview.to_json end |