"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

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

On Sun, Mar 6, 2011 at 7:28 PM, Hassan S.
<[email protected]

On Sun, Mar 6, 2011 at 10:23 AM, Samuel S.
[email protected] wrote:

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?

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 .


Hassan S. ------------------------ [email protected]
twitter: @hassan

On 7 March 2011 09:49, Chris K. [email protected] wrote:

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