Passing template to “rails new”

匿名 (未验证) 提交于 2019-12-03 01:48:02

问题:

When calling "rails new" it is obviously possible to pass some kind of template or setup script via the "-m" command line parameter. I found this via https://github.com/fortuity/rails3-mongoid-devise/wiki/Tutorial-(Walkthrough). And https://github.com/fortuity/rails3-application-templates/blob/master/rails3-mongoid-devise-template.rb looks like DSL for manipulating Rails applications. That looks quite cool, but I was not able to find more information about it. Could somebody point me to the related documentation?

回答1:

Here is some information you may find useful:

I also found this guide in the Rails source code which isn't linked to from the main Guides page, but may have some useful information for you.

You may also be interested in the source for the default app template methods, which is used when you use rails new with no -m option, or this application template I started on a while back that explores some different options.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!