Added redactions controller test and fixed a bug in the controller
This commit is contained in:
parent
7c42552f16
commit
7da8a5a1a8
2 changed files with 131 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue