def create_html_embedded
      image = Image.create! asset: params[:image]
      render json: { success: true, file: image.asset.url }
    end
def create_html_embedded
      image = Image.create! asset: params[:image]
      render json: { success: true, file: image.asset.url }
    end
ajax action

 Called from the Trumbowyg JS wysiwyg editor when embedding images to a
 HTML field.