Merge branch 'master' into feature/#17
Conflicts: app/views/exceptionhandler/index.html.erb
This commit is contained in:
@@ -63,7 +63,8 @@ class ExceptionhandlerController < ApplicationController
|
|||||||
issue.save
|
issue.save
|
||||||
flash.now[:notice] = "New report filed: ##{issue.id}"
|
flash.now[:notice] = "New report filed: ##{issue.id}"
|
||||||
else
|
else
|
||||||
flash.now[:error] = issue.errors.full_messages
|
flash.now[:error] = "There was an error with filing this report"
|
||||||
|
@output = issue.errors.full_messages
|
||||||
end
|
end
|
||||||
|
|
||||||
#TODO generate link to issue
|
#TODO generate link to issue
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
<h1>Exception Handler</h1>
|
<h1>Exception Handler</h1>
|
||||||
<br/>
|
<br/>
|
||||||
|
<%= @output %>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
<strong>Number of params:</strong> <%= params.size %>
|
<strong>Number of params:</strong> <%= params.size %>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
@@ -13,7 +16,3 @@
|
|||||||
<strong>Params:</strong>
|
<strong>Params:</strong>
|
||||||
<br/>
|
<br/>
|
||||||
<%= params.inspect %>
|
<%= params.inspect %>
|
||||||
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<%= @output %>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user