提交 d6ae930c 编写于 作者: R RomD 提交者: José Valim

fix ambiguous example for new invocation method

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 345e0b27
...@@ -39,8 +39,8 @@ h4. script/* replaced by script/rails ...@@ -39,8 +39,8 @@ h4. script/* replaced by script/rails
The new <tt>script/rails</tt> replaces all the scripts that used to be in the <tt>script</tt> directory. You do not run <tt>script/rails</tt> directly though, the +rails+ command detects it is being invoked in the root of a Rails application and runs the script for you. Intended usage is: The new <tt>script/rails</tt> replaces all the scripts that used to be in the <tt>script</tt> directory. You do not run <tt>script/rails</tt> directly though, the +rails+ command detects it is being invoked in the root of a Rails application and runs the script for you. Intended usage is:
<shell> <shell>
rails console # => ./script/rails console rails console # instead of script/console
rails g scaffold post title:string # => ./script/rails generate scaffold post title:string rails g scaffold post title:string # instead of script/generate scaffold post title:string
</shell> </shell>
Run rails --help for a list of all the options. Run rails --help for a list of all the options.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册