Skip to content

Commit 8828651

Browse files
committed
Command Line Guide: changes all 'rails app' commands to 'rails new app'
1 parent 48d85a6 commit 8828651

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

railties/guides/source/command_line.textile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ There are a few commands that are absolutely critical to your everyday usage of
2323
* <tt>rake</tt>
2424
* <tt>rails generate</tt>
2525
* <tt>rails dbconsole</tt>
26-
* <tt>rails app_name</tt>
26+
* <tt>rails new app_name</tt>
2727

2828
Let's create a simple Rails application to step through each of these commands in context.
2929

30-
h4. +rails+
30+
h4. +rails new+
3131

32-
The first thing we'll want to do is create a new Rails application by running the +rails+ command after installing Rails.
32+
The first thing we'll want to do is create a new Rails application by running the +rails new+ command after installing Rails.
3333

3434
WARNING: You know you need the rails gem installed by typing +gem install rails+ first, if you don't have this installed, follow the instructions in the "Rails 3 Release Notes":/3_0_release_notes.html
3535

3636
<shell>
37-
$ rails commandsapp
37+
$ rails new commandsapp
3838
create
3939
create README
4040
create .gitignore
@@ -352,7 +352,7 @@ $ mkdir gitapp
352352
$ cd gitapp
353353
$ git init
354354
Initialized empty Git repository in .git/
355-
$ rails . --git --database=postgresql
355+
$ rails new . --git --database=postgresql
356356
exists
357357
create app/controllers
358358
create app/helpers
@@ -397,7 +397,7 @@ development:
397397
...
398398
</shell>
399399

400-
It also generated some lines in our database.yml configuration corresponding to our choice of PostgreSQL for database. The only catch with using the SCM options is that you have to make your application's directory first, then initialize your SCM, then you can run the +rails+ command to generate the basis of your app.
400+
It also generated some lines in our database.yml configuration corresponding to our choice of PostgreSQL for database. The only catch with using the SCM options is that you have to make your application's directory first, then initialize your SCM, then you can run the +rails new+ command to generate the basis of your app.
401401

402402
h4. +server+ with Different Backends
403403

0 commit comments

Comments
 (0)