Inside javascript, how can I reference an asset name that will change in Production?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/rails

Our great sponsors
  • JetBrains - Developer Ecosystem Survey 2022
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • gon

    Your Rails variables in your JS

    Try the Gon gem

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts