2016-05-28 16:04:13 -04:00
|
|
|
The most common rails commands are:
|
|
|
|
generate Generate new code (short-cut alias: "g")
|
|
|
|
console Start the Rails console (short-cut alias: "c")
|
|
|
|
server Start the Rails server (short-cut alias: "s")
|
|
|
|
test Run tests (short-cut alias: "t")
|
|
|
|
dbconsole Start a console for the database specified in config/database.yml
|
|
|
|
(short-cut alias: "db")
|
2016-12-14 00:54:59 -05:00
|
|
|
<% unless engine? %>
|
2016-05-28 16:04:13 -04:00
|
|
|
new Create a new Rails application. "rails new my_app" creates a
|
|
|
|
new application called MyApp in "./my_app"
|
2016-12-14 00:54:59 -05:00
|
|
|
<% end %>
|
2016-05-28 16:04:13 -04:00
|
|
|
|
|
|
|
All commands can be run with -h (or --help) for more information.
|
|
|
|
In addition to those commands, there are:
|
|
|
|
|