When calling "rails new", obviously, you can pass some kind of template or script setting through the command line parameter "-m". I found this through 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 a DSL for managing Rails applications. It looks pretty cool, but I could not find more information about it. Can someone point me to the relevant documentation?
Here is some information you might find helpful:
I also found this guide in the Rails source code, which is not related to the main page of the guide, but may have some useful information for you.
You may also be interested in the source for the standard methods of the application template , which is used when you use rails new without -m , or this application template I started some time ago, exploring several different options.
rails new
-m