I\'m having trouble setting up ruby on rails on my machine. I\'ve been following the book \"Agile Web Development with Rails\" and up until now everything has been going fine.<
I think you need a runtime like rubyracer. Try
sudo gem install therubyracer