Class: SimpleFormAttachments::UploadController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- SimpleFormAttachments::UploadController
- Defined in:
- app/controllers/simple_form_attachments/upload_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/simple_form_attachments/upload_controller.rb', line 10 def create = res = .save render json: { html: () }, status: (res ? :ok : :unprocessable_entity) end |
#show ⇒ Object
5 6 7 8 |
# File 'app/controllers/simple_form_attachments/upload_controller.rb', line 5 def show = .find(params[:id]) render json: { html: () }, status: :ok end |