Changed successfull flash messages to notice and print incomming params to user
This commit is contained in:
@@ -48,7 +48,7 @@ class ExceptionhandlerController < ApplicationController
|
|||||||
issue = check_for_existing_report
|
issue = check_for_existing_report
|
||||||
if issue != nil
|
if issue != nil
|
||||||
if update_report(issue)
|
if update_report(issue)
|
||||||
flash.now[:success] = "Updated report"
|
flash.now[:notice] = "Updated report"
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -57,7 +57,7 @@ class ExceptionhandlerController < ApplicationController
|
|||||||
issue = create_new_report
|
issue = create_new_report
|
||||||
if issue.valid?
|
if issue.valid?
|
||||||
issue.save
|
issue.save
|
||||||
flash.now[:success] = "New report filed"
|
flash.now[:notice] = "New report filed"
|
||||||
else
|
else
|
||||||
flash.now[:error] = issue.errors.full_messages
|
flash.now[:error] = issue.errors.full_messages
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,10 +3,15 @@
|
|||||||
<strong>Number of params:</strong> <%= params.size %>
|
<strong>Number of params:</strong> <%= params.size %>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<strong>Params:</strong>
|
<strong>Keys:</strong>
|
||||||
<% params.each do |param| %>
|
<% params.keys.each do |param| %>
|
||||||
<br/>
|
<br/>
|
||||||
<%= param %>
|
<%= param %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<strong>Params:</strong>
|
||||||
|
<br/>
|
||||||
|
<%= params.inspect %>
|
||||||
|
|
||||||
<%= @output %>
|
<%= @output %>
|
||||||
|
|||||||
Reference in New Issue
Block a user