diff options
author | Arkadiusz Holko <fastred@fastred.org> | 2010-07-30 09:19:01 -0700 |
---|---|---|
committer | Arkadiusz Holko <fastred@fastred.org> | 2010-07-30 09:19:01 -0700 |
commit | 88286514202dcdeede735329e453b6a6c59800d1 (patch) | |
tree | cd7c32a7c5e0d689efd581efb92df577df38c7fb /railties/guides | |
parent | 48d85a61bc0918d6ea1bad574c9672184d45f0ce (diff) | |
download | rails-88286514202dcdeede735329e453b6a6c59800d1.tar.gz rails-88286514202dcdeede735329e453b6a6c59800d1.tar.bz2 rails-88286514202dcdeede735329e453b6a6c59800d1.zip |
Command Line Guide: changes all 'rails app' commands to 'rails new app'
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/command_line.textile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile index 983c04c3d9..fb625f7a44 100644 --- a/railties/guides/source/command_line.textile +++ b/railties/guides/source/command_line.textile @@ -23,18 +23,18 @@ There are a few commands that are absolutely critical to your everyday usage of * <tt>rake</tt> * <tt>rails generate</tt> * <tt>rails dbconsole</tt> -* <tt>rails app_name</tt> +* <tt>rails new app_name</tt> Let's create a simple Rails application to step through each of these commands in context. -h4. +rails+ +h4. +rails new+ -The first thing we'll want to do is create a new Rails application by running the +rails+ command after installing Rails. +The first thing we'll want to do is create a new Rails application by running the +rails new+ command after installing Rails. 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 <shell> -$ rails commandsapp +$ rails new commandsapp create create README create .gitignore @@ -352,7 +352,7 @@ $ mkdir gitapp $ cd gitapp $ git init Initialized empty Git repository in .git/ -$ rails . --git --database=postgresql +$ rails new . --git --database=postgresql exists create app/controllers create app/helpers @@ -397,7 +397,7 @@ development: ... </shell> -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. +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. h4. +server+ with Different Backends |