Sign in through GitHub
Running JavaScript in Ruby

#297 Running JavaScript in Ruby

Nov 07, 2011 | 14 minutes | Plugins, Ajax, Views
Sometimes logic needs to be shared between the server-side (Ruby) and the client-side (JavaScript). Here I show how to run JavaScript directly in Ruby through ExecJS and therubyracer.