Search code examples
ruby-on-railsrubyjrubyjrubyonrails

therubyrhino or therubyracer but for Ruby, not JavaScript


Is there something like therubyrhino or therubyracer but for JRuby, not JavaScript?

I tested eval but this allows to access all models and classes from my Rails-Project. I really want to force the code into an own environment (with only the standard classes) and want to extend this environment with some chosen variables and classes.


Solution

  • there's some good stuff for you here, I think.

    Language in a Sandbox in Rails

    and in general:

    http://www.google.com/search?gcx=w&ix=c1&sourceid=chrome&ie=UTF-8&q=ruby+sandbox