gpt4 book ai didi

ruby-on-rails - 什么是 Rails3 应用程序构建器?

转载 作者:行者123 更新时间:2023-12-03 00:49:19 25 4
gpt4 key购买 nike

根据 Rails 的使用情况:

$ rails new --help
Usage:
rails new APP_PATH [options]

Options:
-b, [--builder=BUILDER] # Path to a application builder (can be a filesystem path or URL)
[--old-style-hash] # Force using old style hash (:foo => 'bar') on Ruby >= 1.9
[--skip-gemfile] # Don't create a Gemfile

这个“应用程序构建器”指的是什么?它与应用程序模板(-m 选项)相比如何?

最佳答案

Descriptions in API Doc

The application builder allows you to override elements of the application generator without being forced to reverse the operations of the default generator.

简而言之,您可以在创建新的 Rails 应用之前定义默认的依赖项集。

检查this post了解更多信息。

关于ruby-on-rails - 什么是 Rails3 应用程序构建器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8897588/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com