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

View File

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