I need to execute user-entered JavaScript on Heroku under Rails and I want to load underscore.js into my V8 context before running the user-entered js. I'm using the underscore-rails gem for purposes of browser-side execution, so I'd like to pull the underscore.js file from my server gem repository. My question is, how can I "find" this file in the gem repository? Alternatively, is there a better way to handle this?
You can find the root of a gem as described in the answer to this question, then just append the relative path to the file you're interested in.