Added redactions controller test and fixed a bug in the controller

This commit is contained in:
Matt Amos 2012-04-03 20:09:17 +01:00 committed by Tom Hughes
parent 7c42552f16
commit 7da8a5a1a8
2 changed files with 131 additions and 1 deletions

View file

@ -68,7 +68,7 @@ class RedactionsController < ApplicationController
else
if @redaction.destroy
flash[:notice] = t('redaction.destroy.flash')
redirect_to :index
redirect_to :redactions
else
flash[:error] = t('redaction.destroy.error')
redirect_to @redaction