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