* WIP
* Remove YamlSyntax since it is broken with Ruby 3.1
* Improve npm script handling
* Clean up Gemfile entries
* Only emit scss files if --css=sass
* Update README for Rails 7
* Handle importmap-rails case
* More robust handling of layouts/application.html.erb
* Remove sass recommendation for now
* Ensure simpler package.json (no license, name)
* Switch to Node LTS
* Upgrade CI to Rails 7 and Ruby 3
* .env is not needed for CI
* Split security audits to separate CI job, rm cron
* Fix Node LTS install failure on CI
* No longer used
* Ensure app can be built and deployed on Linux
This is the application template that I use for my Rails 6 projects. As a freelance Rails developer, I need to be able to start new projects quickly and with a good set of defaults. I've assembled this template over the years to include best-practices, tweaks, documentation, and personal preferences, while still generally adhering to the "Rails way".
This is the application template that I recommend for Rails 7 projects. I've assembled this template over the years to include best-practices, tweaks, documentation, and personal preferences, while still generally adhering to the "Rails way".
@ -18,10 +19,9 @@ For older versions of Rails, use these branches:
This template currently works with:
* Rails 6.1.x
* Rails 7.0.x
* Bundler 2.x
* PostgreSQL
* chromedriver
If you need help setting up a Ruby development environment, check out my [Rails OS X Setup Guide](https://mattbrictson.com/rails-osx-setup-guide).
@ -38,9 +38,9 @@ To make this the default Rails application template on your system, create a `~/
## Usage
This template assumes you will store your project in a remote git repository (e.g. Bitbucket or GitHub) and that you will deploy to a production environment. It will prompt you for this information in order to pre-configure your app, so be ready to provide:
This template assumes you will store your project in a remote git repository (e.g. GitHub) and that you will deploy to a production environment. It will prompt you for this information in order to pre-configure your app, so be ready to provide:
1. The git URL of your (freshly created and empty) Bitbucket/GitHub repository
1. The git URL of your (freshly created and empty) GitHub repository
2. The hostname of your production server
To generate a Rails application using this template, pass the `-m` option to `rails new`, like this:
@ -64,10 +64,9 @@ rails new blog
The template will perform the following steps:
1. Generate your application files and directories
2. Ensure bundler is installed
3. Create the development and test databases
4. Commit everything to git
5. Push the project to the remote git repository you specified
2. Create the development and test databases
3. Commit everything to git
4. Push the project to the remote git repository you specified
## What is included?
@ -80,7 +79,6 @@ The template will perform the following steps: