views:

63

answers:

2

Running the command generates new rails projects:

$ rails generate controller home index 

The above will create four new rails projects: generate, controller, home, and index\

Why is this happening?

I'm using rails (2.3.5)

+5  A: 

My guess, you are trying to use Rails 3 syntax for a Rails 2 app.

You should use script/generate in Rails 2.

Sam Saffron
+3  A: 
rails generate ...

creates a Rails project called "generate"

Use this instead:

ruby script/generate controller home index
mportiz08