Class: TinymceAssetsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- TinymceAssetsController
- Defined in:
- app/controllers/tinymce_assets_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'app/controllers/tinymce_assets_controller.rb', line 2 def create :create, TinymceAsset image = TinymceAsset.create params.permit(:file) render json: { image: { url: image.file.url } }, content_type: "text/html" end |