Added missing action in report controller
This commit is contained in:
parent
2e36f8d375
commit
719edcd1a7
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue