Skip to content

Instantly share code, notes, and snippets.

@thomasvanholder
Created January 22, 2021 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasvanholder/2de9aea72cc7d48bc80f77a2764a60f5 to your computer and use it in GitHub Desktop.
Save thomasvanholder/2de9aea72cc7d48bc80f77a2764a60f5 to your computer and use it in GitHub Desktop.
How to use credentials in html.erb
<!-- interpolate in script tag -->
<script src="https://maps.googleapis.com/maps/api/js?key=<%= "#{Rails.application.credentials.google_api_key}"%>"</script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment