我正在关注Michael Hartl的Ruby on Rails教程,在第二章中,我们设置了一个演示应用程序。我遇到了错误,我无法找到原因!!
我确保遵循教程中的每个命令:
rails new to demo_app
创建项目rails generate scaffold User name:string email:string
bundle exec rake db:migrate
rails s
http://localhost:3000/
显示正确http://localhost:3000/users/
时,出现此错误
任何人都可以了解设置为什么会起作用吗?!
答案 0 :(得分:1)
安装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
答案 1 :(得分:0)
此问题与此问题重复