aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-11-18 13:53:18 +0000
committerGareth Rees <gareth@mysociety.org>2014-11-18 13:53:18 +0000
commit401aef5cf0bad318ac753ee5fb547e23c22deeb4 (patch)
tree4ca1ac36dcd6a183df4c9b25a1f7950dbbb73a4a /app/controllers
parent07cfa98ae171c3e1d62956f3d3a5bf0a2ab31983 (diff)
Use flash[:error] for error condition
Also use double quotes rather than string escaping
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin_public_body_categories_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_public_body_categories_controller.rb b/app/controllers/admin_public_body_categories_controller.rb
index df429ff67..5e305dde3 100644
--- a/app/controllers/admin_public_body_categories_controller.rb
+++ b/app/controllers/admin_public_body_categories_controller.rb
@@ -22,7 +22,7 @@ class AdminPublicBodyCategoriesController < AdminController
I18n.with_locale(I18n.default_locale) do
if params[:public_body_category][:category_tag] && PublicBody.find_by_tag(@category.category_tag).count > 0 && @category.category_tag != params[:public_body_category][:category_tag]
- flash[:notice] = 'There are authorities associated with this category, so the tag can\'t be renamed'
+ flash[:error] = "There are authorities associated with this category, so the tag can't be renamed"
render :action => 'edit'
else
if params[:headings]