diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index c6f0ca70..8ce37b4c 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -127,7 +127,7 @@ def load_tag_from_name ActsAsTaggableOn::Tag.find_by(id: params[:id]) end unless @tag - flash.now[:error] = "We're sorry, but '#{params[:name]}' is not a tag for '#{@hub.title}'" + flash[:error] = "We're sorry, but '#{params[:id]}' is not a tag for '#{@hub.title}'" redirect_to hub_path(@hub) end