David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said over 6 years ago on Dependent Form Fields :
Can you post relevant code and also check to see if you have any JS errors in the Developer Tool Console of the browser? This should all work regardless of using `simple_form` .

David Kimura PRO said over 6 years ago on Dependent Form Fields :
Have you tried doing something like
$(document).on('turbolinks:load', function() { DependentFields.bind() });
instead of the
$(document).ready(function() { DependentFields.bind() });

David Kimura PRO said over 6 years ago on Production Deployment on Ubuntu :
it is a personal preference. Ive been using it for years without problems so I have not had a reason to change.

David Kimura PRO said over 6 years ago on Invisible Captcha :
You could set this in your config to something like `Rails.env.development? || Rails.env.production?` or `!Rails.env.test?` to bypass it on the tests.

David Kimura PRO said over 6 years ago on Two Factor Authentication :
I think that this would be a great episode. In your example, would the token be used in addition to their username and password for multifactor auth? Or, are you thinking that the user would not have a username and password and they would simply authenticate with the token? Keep in mind that with security around authentication, ticking off more of these in the list below strengthens the auth wall. 1. something you know (username and password) 2. something you have (registered cell phone with app for token) 3. something you are (fingerprint, facial, etc. i.e., Touch ID to unlock phone) I would highly advise against using just a token to authenticate without needing the username and password if that was the direction you were referring to.