Rails Template

screenshot of Rails Template
rails
vite

My former app template for Rails 7. All recommendations you see here have been moved to https://github.com/mattbrictson/nextgen

Overview

The mattbrictson/rails-template is an application template specifically designed for Rails 7 projects. It incorporates best practices, tweaks, documentation, and personal preferences while still adhering to the "Rails way". The template includes various blog posts written by the developer, which offer deeper insights into the techniques, helpers, and boilerplate code used in this template.

Features

  • Organized CSS in a Rails project
  • Rails tasks with Thor instead of Rake
  • Speed optimization for default Rake tasks with the multitask -m option
  • Automatic browser opening when the Rails server starts
  • Configurable RuboCop to scan the appropriate files in a Rails project
  • Easier implementation of nested layouts in Rails
  • Fixing slow and unreliable system tests in Vite-Rails
  • Usage of three Vite plugins in every new Rails project
  • Incorporation of inline SVGs with Rails and Vite

Summary

The mattbrictson/rails-template is a highly recommended application template for Rails 7 projects. It incorporates best practices, personal preferences, and various helpful features such as optimized Rake tasks, automatic browser opening, and easier implementation of nested layouts. The template can be easily installed by following the provided steps, and it significantly enhances the development experience for Rails developers.

rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects