I have a problems with javascripts assets in Ruby on Rails.
Descripttion:
I have two files in app/assets/javascript folder.
- "constans.js" include a constant array "var FEATURES = new Array["A","B","C"]"
- "route.js.erb" <%= FEATURES[1] %>
Now , I'm implementing my function in "route.js.erb" but I can't access the "FEATURES" array ?
I searched on Google but can't not find the solution.
So, anybody can help me? Thanks!
( my first question in stack overflow , sorry for my bad english)