Skip to content

Instantly share code, notes, and snippets.

View ruslan-oliinyk's full-sized avatar
🎯
Focusing

Ruslan Oliinyk ruslan-oliinyk

🎯
Focusing
View GitHub Profile
@ruslan-oliinyk
ruslan-oliinyk / env_variables.md
Last active May 27, 2021 10:08
How to use the same variables inside Ruby ​​and JS code at the same time

How to use the same variables inside Ruby and JS code at the same time

Prerequisites:

  • Ruby 2.3+
  • Rails 5.1+
  • Webpacker 4.x.x
  • Node.js 8.16.0+
  • Yarn 1.x+