【问题标题】:Passing template to "rails new"将模板传递给“rails new”
【发布时间】:2011-02-20 15:51:44
【问题描述】:

当调用“rails new”时,显然可以通过“-m”命令行参数传递某种模板或设置脚本。我通过https://github.com/fortuity/rails3-mongoid-devise/wiki/Tutorial-(Walkthrough) 找到了这个。而https://github.com/fortuity/rails3-application-templates/blob/master/rails3-mongoid-devise-template.rb 看起来像是用于操作 Rails 应用程序的 DSL。这看起来很酷,但我无法找到有关它的更多信息。有人可以指出我的相关文档吗?

【问题讨论】:

    标签: ruby-on-rails-3


    【解决方案1】:

    以下是一些您可能会觉得有用的信息:

    我还在 Rails 源代码中找到了 this guide,该源代码未链接到主指南页面,但可能对您有一些有用的信息。

    您可能还对source for the default app template methods 感兴趣,当您使用没有-m 选项的rails newthis application template 时使用它,我不久前开始探索一些不同的选项。

    【讨论】:

    • 哇!这就是我一直在寻找的一切,也是花更多时间学习 Rais 的另一个理由! :-)
    猜你喜欢
    • 1970-01-01
    • 2014-06-26
    • 2012-09-17
    • 1970-01-01
    • 2017-12-25
    • 2019-02-15
    • 2017-11-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多