Changed successfull flash messages to notice and print incomming params to user

This commit is contained in:
2012-03-30 12:46:46 -04:00
parent e7c1c3226b
commit d6eec54b08
2 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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 %>