Problems following this tutorial

Hello,

I try to follow this tutorial :

But when I do rails generate controller home index I get this output :

Usage :
rails new APP_PATH [options]

I have Ruby version 1.9.3

Roelof

On 3 September 2012 19:12, roelof [email protected] wrote:

Hello,

I try to follow this tutorial :
Getting Started with Rails — Ruby on Rails Guides
But when I do rails generate controller home index I get this output :

Usage :
> rails new APP_PATH [options]

Are you in the top level folder of a rails app when you run that
command? You should be. If not then the only valid rails command is
rails new …

Colin

Op dinsdag 4 september 2012 14:08:23 UTC+2 schreef Colin L. het
volgende:

rails new APP_PATH [options]
[/code]

Are you in the top level folder of a rails app when you run that
command? You should be. If not then the only valid rails command is
rails new …

I think so. Im working with Railsinstaller on Win7.
And I’m working in the c:/railsinstaller/ruby.1.9.3 directory.

Roelof

…as stated in the tutorial here:

3.2 Creating the Blog Application
To begin, open a terminal, navigate to a folder where you have rights to
create files, and type:

$ rails new blog
This will create a Rails application called Blog in a directory called
blog.

You can see all of the switches that the Rails application builder
accepts by running rails new -h.

After you create the blog application, switch to its folder to continue
work directly in that application:

$ cd blog <—*****DID YOU DO THAT???

I think so. Im working with Railsinstaller on Win7.

And I’m working in the c:/railsinstaller/ruby.1.9.3 directory.

Oh no… That’s Rails’ main directory not your App’s directory. The
first
step should be the app’s creation with:
rails new application_name

Than you should change your directory to the application’s directory
with:
cd application_name

Now the other rails commands should be available.