问题
I am following the Ruby on Rails tutorial by Michael Hartl and in the second chapter, a demo app is setup. I am up against an error and I am not able to find the cause!!
I made sure that I followed every command that was in the tutorial:
- Ran
rails new to demo_app
create the project - Updated the gem file as was required
- Executed
rails generate scaffold User name:string email:string
- Migrated the DB using
bundle exec rake db:migrate
- Started the server -
rails s
http://localhost:3000/
shows up right- When I try to navigate to
http://localhost:3000/users/
, I am presented with this error

Can anybody shed some light on why the setup is acting up?!
回答1:
steps to Install Node.js
Go to
nodejs website and download the installer
Click on the downloaded file to run the install wizard. Click Next at each step to accept the defaults.
Reboot your computer.
Once your computer is back up, load Command Prompt with Ruby and Rails OR simple command prompt and...
Type this in the terminal:
node -v
来源:https://stackoverflow.com/questions/19827958/railstutorial-org-execjsruntimeerror-in-usersindex