Skip to content
This repository
Browse code

Command Line Guide: changes all 'rails app' commands to 'rails new app'

  • Loading branch information...
commit 88286514202dcdeede735329e453b6a6c59800d1 1 parent 48d85a6
Arkadiusz Holko authored July 30, 2010
12  railties/guides/source/command_line.textile
Source Rendered
@@ -23,18 +23,18 @@ There are a few commands that are absolutely critical to your everyday usage of
23 23
 * <tt>rake</tt>
24 24
 * <tt>rails generate</tt>
25 25
 * <tt>rails dbconsole</tt>
26  
-* <tt>rails app_name</tt>
  26
+* <tt>rails new app_name</tt>
27 27
 
28 28
 Let's create a simple Rails application to step through each of these commands in context.
29 29
 
30  
-h4. +rails+
  30
+h4. +rails new+
31 31
 
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.
33 33
 
34 34
 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
35 35
 
36 36
 <shell>
37  
-$ rails commandsapp
  37
+$ rails new commandsapp
38 38
      create  
39 39
      create  README
40 40
      create  .gitignore
@@ -352,7 +352,7 @@ $ mkdir gitapp
352 352
 $ cd gitapp
353 353
 $ git init
354 354
 Initialized empty Git repository in .git/
355  
-$ rails . --git --database=postgresql
  355
+$ rails new . --git --database=postgresql
356 356
       exists
357 357
       create  app/controllers
358 358
       create  app/helpers
@@ -397,7 +397,7 @@ development:
397 397
 ...
398 398
 </shell>
399 399
 
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.
401 401
 
402 402
 h4. +server+ with Different Backends
403 403
 

0 notes on commit 8828651

Please sign in to comment.
Something went wrong with that request. Please try again.