David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said almost 8 years ago on Mail Previews and Templates :

My apologies. I haven't found any solid ones yet. However, you can use ink for emails without interfering with the bootstrap web app. It could be something as simple as creating a bootstrap CSS file in place of the foundation one.


David Kimura PRO said almost 8 years ago on DRY up your Javascript :

It's a strange situation where you have two acting parts. The initial form when creating a new contact would trigger the date picker from turbolinks:load. However, when you go to edit the contact, the turbolinks:load would not trigger since it is a server generated javascript being sent back. In hindsight, the document.ready should be removed from the date_picker_init.js file and placed under the edit.js.erb since it is more applicable there. 


David Kimura PRO said almost 8 years ago on Rails API - Authentication with JWT :

You can change the default expiration. See the initializer at

https://github.com/nsarno/knock/blob/master/lib/generators/templates/knock.rb

  ## Expiration claim
  ## ----------------
  ##
  ## How long before a token is expired. If nil is provided, token will
  ## last forever.
  ##
  ## Default:
  # config.token_lifetime = 1.day

You should be able to set the token_lifetime to nil to make the token never expire if that is a requirement as well.

config.token_lifetime = nil

David Kimura PRO said almost 8 years ago on Rails API Basics :

It was just a normal "default" install as what can be found in the README; customizations with controllers, models, config, etc. were not done. 


David Kimura PRO said almost 8 years ago on Meta Tags :

Thanks for pointing this out! I've pushed up a patch and this should be fixed now.