diff --git a/README.rdoc b/README.rdoc index 32b0e04..41c58b6 100644 --- a/README.rdoc +++ b/README.rdoc @@ -4,3 +4,9 @@ This plugin allows the Exception Handler Library or any other client application When a new report is received, this plugin will automatically search for an existing report. If there is an existing report, it will be updated; if not, a new report will be filed. + += Installation + +clone into your plugin folder rake yourt database with the following command: + +rake db:migrate_plugins RAILS_ENV=production diff --git a/app/controllers/exceptionhandler_controller.rb b/app/controllers/exceptionhandler_controller.rb index 330a5e1..8ac47e5 100755 --- a/app/controllers/exceptionhandler_controller.rb +++ b/app/controllers/exceptionhandler_controller.rb @@ -52,7 +52,7 @@ class ExceptionhandlerController < ApplicationController issue = check_for_existing_report if issue != nil if update_report(issue) - flash.now[:notice] = "Updated report" + flash.now[:notice] = "Updated report: ##{issue.id}" end else @@ -61,7 +61,7 @@ class ExceptionhandlerController < ApplicationController issue = create_new_report if issue.valid? issue.save - flash.now[:notice] = "New report filed" + flash.now[:notice] = "New report filed: ##{issue.id}" else flash.now[:error] = issue.errors.full_messages end diff --git a/app/helpers/exceptionhandler_helper.rb b/app/helpers/exceptionhandler_helper.rb index c31eedf..b3a7169 100755 --- a/app/helpers/exceptionhandler_helper.rb +++ b/app/helpers/exceptionhandler_helper.rb @@ -135,7 +135,6 @@ module ExceptionhandlerHelper when "Count" value.value = (value.value.to_i + 1).to_s end - value.save end issue.init_journal(User.anonymous, "Issue updated") return issue.save