Class: Import::WebContentsController
- Inherits:
-
ApplicationApiController
- Object
- ApplicationApiController
- Import::WebContentsController
- Defined in:
- app/controllers/pwb/import/web_contents_controller.rb
Instance Method Summary collapse
Instance Method Details
#multiple ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/pwb/import/web_contents_controller.rb', line 5 def multiple Content.import(params[:file]) return render json: { "success": true }, status: :ok, head: :no_content # redirect_to root_url, notice: "contents imported." end |