0

I need to install ruby on rails for college. I can get as far as the 'welcome page' but when I try to run a sample page I'm getting an error.

A friend of mine has a similar problem and he too uses windows 8.

I got out an old laptop ( Windows 7 ) and installed it and I'm not getting the error page so I'm pretty sure it's got something to do with Windows 8.

Screenshot here...

http://i48.tinypic.com/29c5ms1.png

3
  • 2
    I'd recommend posting text, not images. Commented Feb 21, 2013 at 18:19
  • Can you include the error message you're getting in the question please? Commented Feb 21, 2013 at 18:19
  • 1
    possible duplicate of ExecJS::RuntimeError on windows 7 trying to follow rubytutorial Commented Feb 21, 2013 at 18:39

1 Answer 1

1

You have to either install nodejs, or add TheRubyRacer gem to your project. To do the latter, edit your Gemfile and add:

gem 'therubyracer'

Then run:

bundle install

And that should fix it.

Sign up to request clarification or add additional context in comments.

3 Comments

Actually, therubyracer gem depends on libv8 which doesn't compile on Windows.
I seen in a similar thread that by removing '//= require_tree' it works but I'm not sure if this will affect other things.
yes, installing nodejs seems to have solved the problem. thanks Alfonso.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.