Rails生成脚手架用户:字符串密码:字符串只是创建一个新的rails文件夹
我是 Rails 新手,正在尝试关注 Railstutorial.org。
当我使用Rails生成脚手架用户:字符串密码:字符串时,它会创建一个名为generate的新文件夹,并执行与“Rails Demo_App”相同的命令。我假设我没有正确安装某些东西。
我正在使用 Windows 7、Cygwin/Vim/Sqlite3 - 我需要重新安装 Cygwin 大约 3 次以确保安装了 openssh、git、vim 和其他插件/库。我假设我需要再次做类似的事情。
此外,Gemfile 不是使用rails 命令创建的。这可能有关系吗?
I'm new to rails and trying to follow along with railstutorial.org.
When I use Rails generate scaffold user:string password:string, it creates a new folder entitled generate and does the same command as "Rails Demo_App". I'm assuming I don't have something installed correctly.
I'm using Windows 7, Cygwin/Vim/Sqlite3 - I have needed to reinstall Cygwin about 3 times to make sure openssh, git, vim, and other plugins/libraries were installed. I'm assuming I will need to do something similar again.
Also, a Gemfile isn't created with the rails command. Could this be related?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不应该调用
script/generatescaffold user:string password:string
吗? AFAIK,不从应用程序文件夹调用generate
可能会导致不正确的行为。Aren't you supposed to call
script/generate scaffold user:string password:string
? AFAIK, callinggenerate
not from app folder may cause incorrect behaviour.在应用程序目录中使用
script/generatescaffold ...
。rails
命令用于创建新项目。Use
script/generate scaffold ...
inside of your application directory. Therails
command is used to create a new project.