"rails generate" creates new "generate" project?
Running the command generates new rails projects:
$ rails generate controller home index
Th开发者_StackOverflow社区e above will create four new rails projects: generate, controller, home, and index\
Why is this happening?
I'm using rails (2.3.5)
My guess, you are trying to use Rails 3 syntax for a Rails 2 app.
You should use script/generate
in Rails 2.
rails generate ...
creates a Rails project called "generate"
Use this instead:
ruby script/generate controller home index
精彩评论