Rails generate [anything] creates project called generate
This one really is perplexing me. I've just been through the railstutorial.org tutorial fairly smoothly with no issues.
I created a new app today (same environment) and called it take2. However, what appears to be happening is that any time I type in rails [anything] it just creates a new app named [anything]. For example this means I'm unable to type rails generate rspec:install
I'm using rai开发者_如何学编程ls 3.0.
Appreciate any help you guys might have... (I'm surprised I've managed to stave away from SO this long, getting to where I am now wasn't easy!)
The command changed a little new projects are created with rails new "nameofproject"
You have to be within a project's folder to use rails generate for generating scaffolds and such.
Check out these tutorials for help. http://guides.rubyonrails.org/
精彩评论