David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 7 years ago on Two Factor Authentication :
You could do it, but you'd likely be overwriting a lot of the devise gem. If this were the direction, I probably wouldn't use devise as it's including so much that wouldn't be applicable in this case. I'd still use the OTP gem as it would be able to handle generating and validating the token.

David Kimura PRO said over 7 years ago on Docker and Ruby on Rails :
Hello! There is already an episode on Docker (https://www.driftingruby.com/episodes/intro-to-docker-on-windows). Even though it is on Windows, it is still very applicable to any OS; including macOS. Personally, I prefer using RVM without docker for my development environment. However, since I run macOS on my development machine which is very different from the production instance, I will periodically launch a VM instance to ensure everything is working properly. Since most of my applications are running the AWS Linux image (very closely related to Centos), I'll make sure that assets are precompiled and working properly. The bootstrapping scripts that I have to initialize new instances are tested in my VMs. Is there anything beyond this episode that you would like to see?

David Kimura PRO said over 7 years ago on Rails API Documentation :
Are you able to verify that the doc is generated and at that location? You should be able to do an `eb ssh` within the root of your application to SSH into the environment. From there, look under `/var/app/current/public/docs` to see if it is there. If it is, check the URL to see if you're able to access the file. You may also need to edit your `config/environments/production.rb` file and set this entry `config.public_file_server.enabled = true`

David Kimura PRO said over 7 years ago on Creating PDF files with WickedPDF :
If you've set up the application with the `vendor/assests/stylesheets/pdf.css` and have this set to complile separately, you can download the CSS from https://getbootstrap.com/docs/3.3/customize/?id=08c164bd0450fe50e9bf and paste it into the `pdf.css`. This is what I'm using. You can probably also do the same for bootstrap 4.1, but the important bits would be the things selected where it is mainly the media styles, grid, typography, etc.

David Kimura PRO said over 7 years ago on Creating PDF files with WickedPDF :
Personally, I would try to keep the styling in the email simple. Supporting rendering on different email clients is very difficult since there are definitely more email clients than browsers. Check out https://www.campaignmonitor.com/css for individual styling compatibility for mail clients.