The rails3 rails command order

Recommended for you: Get network issues from WhatsUp Gold. Not end users.
1 create a project
Rails new project name parameter
The parameters -b, --builder-BUILDER specifies the path of the builder
The parameters -d, --database=DATABASE specifies the type of database
The parameters -f, --force in the file exists, covering
The parameter -G, --skip-git is not a built-in.Gitignore, .gitkeep
The parameters -h, --help help
The parameters -j, --javascript=JAVASCRIPT specifies the built-in Javascript class library, the default is jquery
The parameter -J, --skip-javascript is not a built-in JavaScript
The parameter -m, the path to the -template=TAMPLATE template
The parameters -O, --skip-active-recode are not built in active record
The parameters -p, --pretend dry run
The parameters -q, --quiet does not display the progress information
The parameters -r, -ruby=PATH specifies the ruby installation path.
The parameters -s, --skip to skip the file already exists
The parameters -S, --skip-sprockets to sprockets file
The parameters -T, --skip-test-unit are not built in test:: Unit
The parameters -v, --version display version
The parameter --dev GitHub memory on your own code to create
The parameter --edge GitHub memory on the latest code to create
The --old-style-hash parameter will older hash (: foo =>'bar') and effective (above Ruby1.9)
Parameter --skip-gemfile cannot create the Grmfile
The parameter --skip-bundle is not bundle install

2 to start the service
Rails s or rails sever parameters
The parameters -b, --binding=ip the specified binding IP address
The parameters -c, --config=file specifies the rackup file
The parameters -d, --daemon as the daemon server.
The parameters -e, --environment=name specifies the operating environment (test/development/production), the default development
The parameters -h, --help displays help
The parameter -p, --port=port specifies the port number to start the service.
The parameters -P, --pid=pid specifies the PID file
The parameters -u, --debugger debugging ruby-debugging

3 into the console
Rails C or rails console environment parameters
The parameters -s, -sandbox at the time of termination rollback database on the change
Parameters of the -debugger promoter in debug mode
The parameter -irb IRB
The parameters -h, --help displays help

The 4 code generator
Rails g or rails generate
Create controller
    Rails g controller controller_name action_name parameters
    The parameters -e, --template-engine=NAME specifies the use of the template engine
    The parameters -f, --force file already exists in the situation of the
    The parameters -h, --help displays help
    The parameters -p, --pretend dry run
    The parameters -q, --quiet does not display the output results
    The parameters -s, --skip file already exists to skip
    The parameters -t, --test-framework=NAME specifies the test framework applicable
    The parameter --skip-namespace to skip the namespace
    The parameter --old-style-hash using hash older forms
    The parameter --helper is created.
    Parameters of --assets in creating resources
Create model
    Rails g model model_name column_name:type parameters
    The parameters -h, --help displays help
    The parameters -f, --force file already exists in the situation of the
    The parameters -o, -orm= name specified for O/R mapping
    The parameters -p, --pretend dry run
    The parameters -q, --quiet does not display the output results
    The parameters -r, --fixture-replacement= to change the name of the fixture
    The parameters -s, --skip file already exists to skip
    The parameters -t, --test-frameword= name is specified using the testing framework
    The parameter --skip-namespace to skip the namespace
    The parameter --old-style-hash is a hash older forms
    The parameter --migration is to create the migration file
    Parameter --timestamps
    The parameter --parent= name
    Parameter --indexes
    The parameter --fixtures is to create fixture
Create the migration file migration
    Rails g migration migration_name column_name:type parameters
    The parameters -h, --help displays help
    The parameters -f, --force file already exists in the situation of the
    The parameters -o, -orm= specifies the name used by O/R mapping
    The parameters -p, --pretend dry run
    The parameters -q, --quiet does not display the output results
    The parameters -s, --skip file already exists to skip
    The parameter --skip-namespace to skip the namespace
    The parameter --old-style-hash using hash older forms

Installing plugin 5
The URL parameter rails plugin install plug-in name or GitHub
The parameter -e, --export specifies the SVN plugin export achieved
The parameters -f, --force file exists, covering number
The parameters -h, --help displays help
The parameters -o, --checkout acquired SVN checkout specified plugin
The parameters -q, --quiet does not display the output results
The parameter -r, --revision REVISION specifies the checkout revision
The parameter -x, designated --externals made SVN plugin
The corresponding plugin will be installed to the vendor directory

6 delete the file created
Rails destroy deleted file name argument
The parameters -f, --force file already exists in the situation of the
The parameters -h, --help displays help
The parameters -p, --pretend dry run
The parameters -q, --quiet does not display the output results
The parameters -s, --skip file already exists to skip

7 batch processing
The parameter rails runner operation code
The -e parameter specifies the environment
The parameters -h, --help displays help

8 start the database client
rails dbconsole
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Mayme at January 29, 2014 - 12:42 AM