"rails generate" creates application

I am trying to run the command 'rails generate'. According to RubyonRails.org this should show me what generators are available. When I run the 'rails generate' command with no options it creates an application named 'generate'.

Does anyone know why this is happening?

information from: The Rails Command Line — Ruby on Rails Guides

"1.3 rails generate

The rails generate command uses templates to create a whole lot of things. You can always find out what’s available by running rails generate by itself."

Thanks,

samatoms

Because the version of Rails you're running is *not* the version that guide is describing.

Command syntax changed significantly from 2.x to 3.x .

In order to get the output that you’re looking for, you need to type the following on the command line from your RAILS_ROOT directory:

./script/generate -h

Part of the output should look something like:

Installed Generators

Builtin: controller, helper, integration_test, mailer, metal, migration, model, observer, performance_test, plugin, resource, scaffold, session_migration

In order to get the output that you're looking for, you need to type the following on the command line from your RAILS_ROOT directory: ./script/generate -h

But you might be better instead to use Rails 3 rather than the version you are currently using (2.x.x presumably).

Colin