You can use the app:template rails command to apply templates to an existing Rails application. The location of the template needs to be passed in via the LOCATION environment variable. Again, this can either be path to a file or a URL.

Adds a routing entry to the config/routes.rb file. In the steps above, we generated a person scaffold and also removed README.rdoc. Now, to make PeopleController#index the default page for the application:

The application template is evaluated in the context of a
Rails::Generators::AppGenerator instance. It uses the apply action
provided by
Thor.
This means you can extend and change the instance to match your needs.

For example by overwriting the source_paths method to contain the
location of your template. Now methods like copy_file will accept
relative paths to your template's location.

def source_paths
[__dir__]
end

Feedback

You may also find incomplete content or stuff that is not up to date.
Please do add any missing documentation for master. Make sure to check
Edge Guides first to verify
if the issues are already fixed or not on the master branch.
Check the Ruby on Rails Guides Guidelines
for style and conventions.

If for whatever reason you spot something to fix but cannot patch it yourself, please
open an issue.