In my rails 3.1 App, I have 3 different javascript files for my html table. Let say, table1.js.coffee, table2 and table3.
In my application.js file, I have :
// = require table
And in my table.js.coffee.erb, I wish to do something like that :
// = require <%= 'table2' %>
// or (more useful)
// = require <%= Settings.js_table %>
Like this, I will be able to change my table's behavior from an extern config file. For the moment, it's not working. And I was wondering if it's possible ?
Thank you!