From d6eec54b08654e4f2edcf370d298fb672bcf5128 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Fri, 30 Mar 2012 12:46:46 -0400 Subject: [PATCH] Changed successfull flash messages to notice and print incomming params to user --- app/controllers/exceptionhandler_controller.rb | 4 ++-- app/views/exceptionhandler/index.html.erb | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/controllers/exceptionhandler_controller.rb b/app/controllers/exceptionhandler_controller.rb index be38273..b4c9260 100755 --- a/app/controllers/exceptionhandler_controller.rb +++ b/app/controllers/exceptionhandler_controller.rb @@ -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 diff --git a/app/views/exceptionhandler/index.html.erb b/app/views/exceptionhandler/index.html.erb index 9df86b6..9d3e10a 100755 --- a/app/views/exceptionhandler/index.html.erb +++ b/app/views/exceptionhandler/index.html.erb @@ -3,10 +3,15 @@ Number of params: <%= params.size %>

-Params: -<% params.each do |param| %> +Keys: +<% params.keys.each do |param| %>
<%= param %> <% end %> +
+
+Params: +
+<%= params.inspect %> <%= @output %>