Hello Alex! Happy to know that you found it useful ;)
@relize65282 жыл бұрын
SO much helpful
@relize65282 жыл бұрын
greate job
@ahmadzain13813 жыл бұрын
very nice topic, can you please make a video on how to decode or some thing like scan qr code if qr code match then it accept something like payment and if qr code not match it would not
@SupeRails3 жыл бұрын
I think DriftingRuby has a video on that topic (some JS to open camera on device, find & decode QR and open the URL with a get or post request.
@rapfan3533 жыл бұрын
This is a great video I was trying to add qr codes to my application a few years ago and gave up because there was no tutorials around like this. How did you figure it out the documentation for that gem is poor
@SupeRails3 жыл бұрын
IMHO the biggest trick/challenge is saving an image somewhere in temp and uploading to ActiveStorage, so I had to play around a bit
@rapfan3533 жыл бұрын
@@SupeRails fair play i don't know if you would be able to follow on to this video by adding the unique qr code to a pdf attachment that the user receives once a purchase is made?
@SupeRails3 жыл бұрын
When creating a purchase, it should have a SHOW view like (/purchases/15). Next, in the purchases_controller#show render format.pdf. When generating a PDF view for a purchase, just display the QR code :)