0

I need to allow the users of my RoR (3) web application to customise parts of it with simple Javascript. This would involve allowing them to type in a single function which returns an object in JSON.

The RoR app then has to run this Javascript function and use the result of it for further processes.

Does anyone have any experience, examples, frameworks or ideas as how to achieve this please?

Khash
  • 2,500
  • 4
  • 30
  • 56
  • 1
    possible duplicate of [Ruby bindings for a server-side javascript engine ?](http://stackoverflow.com/questions/1789389/ruby-bindings-for-a-server-side-javascript-engine) – Jacob Mattison Jun 15 '11 at 17:44
  • I think you should be careful regarding security, especially if your users can write something that will be seen/executed by other users – Locksfree Jun 15 '11 at 17:45

0 Answers0