Activity
Are you using jQuery? I ask because I was having this same issue when wrapping the stripe js in
document.addEventListener("turbolinks:load", function () { ...
changing to
$(document).on("turbolinks:load", function() { ...
made it work. I don't understand why this should be different, and YMMV, but it for what it's worth that worked for me and stripe and turbolinks lived happily ever after.
Posted in Stripe Elements Javascript Discussion
Hi Foliwe,
I'm sure you've already figured this out, but for anyone coming across this same issue the problem is accessing the params incorrectly.
The user params are coming in as a hash:
"user"=>{"card_brand"=>"Visa", "card_exp_month"=>"4", "card_exp_year"=>"2024", "card_last4"=>"4242"}}
but are being accessed without providing the "user" key:
card_last4: params[:card_last4]
if you replace the code that looks like that above with:
card_last4: params[:user][:card_last4]
it should work fine.
Posted in Set up S3 or DO Spaces for storage, and serve stored images through Cloudfront or other CDN
Posted in CMS in Rails
check out http://camaleon.tuzitio.com/ the UI for it is essentially a clone of WordPress's admin panel