aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/help/USAGE
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-12-14 14:54:59 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-01-09 10:07:48 +0900
commit2a5c116f12c7716399f5da3fe788f7e23ae67c4c (patch)
tree6befeb4de59a0a62bb21b0d64ae11e3b287e0b66 /railties/lib/rails/commands/help/USAGE
parent7f19f30819dd5a5a788ad9d8b12b5dda76559a12 (diff)
downloadrails-2a5c116f12c7716399f5da3fe788f7e23ae67c4c.tar.gz
rails-2a5c116f12c7716399f5da3fe788f7e23ae67c4c.tar.bz2
rails-2a5c116f12c7716399f5da3fe788f7e23ae67c4c.zip
make all rails commands work in engine
Currently, all rails commands can be executed in engine, but `server`, `console`, `dbconsole` and `runner` do not work. This make all rails commands work in engine. Related to #22588
Diffstat (limited to 'railties/lib/rails/commands/help/USAGE')
-rw-r--r--railties/lib/rails/commands/help/USAGE16
1 files changed, 2 insertions, 14 deletions
diff --git a/railties/lib/rails/commands/help/USAGE b/railties/lib/rails/commands/help/USAGE
index 348f41861f..c5f8ab72bb 100644
--- a/railties/lib/rails/commands/help/USAGE
+++ b/railties/lib/rails/commands/help/USAGE
@@ -1,16 +1,3 @@
-Usage: bin/rails COMMAND [args] [options]
-<% if engine? %>
-The common Rails commands available for engines are:
- generate Generate new code (short-cut alias: "g")
- destroy Undo code generated with "generate" (short-cut alias: "d")
- test Run tests (short-cut alias: "t")
-
-All commands can be run with -h for more information.
-
-If you want to run any commands that need to be run in context
-of the application, like `bin/rails server` or `bin/rails console`,
-you should do it from the application's directory (typically test/dummy).
-<% else %>
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
@@ -18,10 +5,11 @@ The most common rails commands are:
test Run tests (short-cut alias: "t")
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
+<% unless engine? %>
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
+<% end %>
All commands can be run with -h (or --help) for more information.
-<% end %>
In addition to those commands, there are: