diff --git a/app/controllers/report_controller.rb b/app/controllers/report_controller.rb index 7e379f343..001ad7916 100644 --- a/app/controllers/report_controller.rb +++ b/app/controllers/report_controller.rb @@ -29,8 +29,10 @@ class ReportController < ApplicationController def create if current_user.reports.create! report_params flash.now[:notice] = I18n.t 'report.status.created' + render :nothing => true, :status => 200 else flash.now[:error] = I18n.t 'report.status.failed' + render :nothing => true, :status => 409 end end