diff options
author | Lukas Matt <lukas@zauberstuhl.de> | 2014-03-21 17:37:21 +0400 |
---|---|---|
committer | Lukas Matt <lukas@zauberstuhl.de> | 2014-05-15 15:23:43 +0400 |
commit | 719edcd1a7cb79827935fced10a922a037af3658 (patch) | |
tree | 7202933f3d9e175068ceefa9a4133b7c7a69d8d4 | |
parent | 2e36f8d375cbf36837d4c4162522b9f751b8150a (diff) |
Added missing action in report controller
-rw-r--r-- | app/controllers/report_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |