From cf566f5e9de04f34692639286e7eb44fd8dbf2a2 Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Mon, 18 Dec 2017 21:04:06 +0100 Subject: [PATCH] fixed false class --- app/controllers/charges_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/charges_controller.rb b/app/controllers/charges_controller.rb index 8b72f65..20aa666 100644 --- a/app/controllers/charges_controller.rb +++ b/app/controllers/charges_controller.rb @@ -23,7 +23,7 @@ class ChargesController < ApplicationController Stripe::Charge.create(amount: @amount, currency: 'CHF', source: params[:stripeToken], description: 'Initiativspende') rescue Stripe::CardError => e - flash[:error] = e.message + flash[:danger] = e.message redirect_to donation_path end end