isenseDev/rSENSE — pull request #67 by hmcq6 (2012-12-07 18:55:29+00:00)
Title: This push adds rails functionality to include page spesific javascript i...

...n a rails friendly way. It seems more rails-y than the way rails deals with javascript.

Basically rails automatically includes all javascript files in /app/assets/javascript in every page, if you want to make a controller#action spesific javascript file just create a new folder for the controller in /app/assets/javascript and name the .js.cofee.erb after the action you want.

For example I made a javascript file that only shows up when you hit the url /experiments/:id/manualEntry. The file is in /app/assets/javascript/experiments and is named manualEntry.js.coffee.erb