Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if params[:amount].blank? || params[:amount].to_f == 0.0
- flash[:notice] = "Invalid Amount, you need to specify a number greater than zero & with no decimals"
- redirect_to new_challenge_donations_path
- end
- if charge["paid"] == true
- saved = @donation.save
- redirect_to root_path
- flash[:notice] = "Thanks for your donation, Feel free to donate again."
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement