gazay / gon

Your Rails variables in your JS
MIT License
3.05k stars 185 forks source link

Variable names are camelCased #195

Closed cristina23 closed 8 years ago

cristina23 commented 9 years ago

Variable names which use underscore in Rails will be camelCased in JS. Maybe you should warn (or err) about undefined variables. The README was misleading. There should be something about it somewhere.

ghost commented 8 years ago

Thank you for sending PR. What do you trouble in any concrete variable name?

gazay commented 8 years ago

By default, unless you use option camel_cased: true in include_gon method, your variable names in JS should be equal to names from Ruby.