2N Rails Template

// production-ready Rails 8 generator with batteries included

curl -fsSL rails.2n.pl/go | ruby
View on GitHub

default_stack

// what you get out of the box

core

PostgreSQL
Vite + Tailwind 4 + DaisyUI
Devise (User model)
Pundit
Shrine + S3

javascript

React 19 + TypeScript
Hotwire (Turbo + Stimulus)
wired through Vite
always on

monitoring

Sentry
Rack::Attack
Bullet (N+1)
strong_migrations

deployment

Kamal (prod + staging)
GitHub Actions
Solid Queue
Mission Control

configuration_options

// toggle in the Edit step on the review screen

Default-on

Devise
Pundit
AWS SDK (S3)
Sentry
— toggle off in Edit

Storage (pick one)

Shrine (default)
Carrierwave
None

Opt-in

rack-cors
— toggle on in Edit

Always-on JS

React 19 + TypeScript
Hotwire (Turbo + Stimulus)
Vite + Tailwind 4 + DaisyUI

Always-on testing

RSpec + FactoryBot
shoulda-matchers
webmock + simplecov
faker + pry-byebug

Always-on core

Rack::Attack + Bullet
strong_migrations
meta-tags + pagy
invisible_captcha

available_endpoints

// ready to use after generation

/

Landing page

/jobs

Mission Control dashboard

/sitemap.xml

SEO sitemap

/robots.txt

Per-environment robots

quick_start

// just one command

curl -fsSL rails.2n.pl/go | ruby

Prompts for an app name, then a review screen — accept the defaults or Edit. Defaults: PostgreSQL, React + Hotwire, Devise, Pundit, Shrine + S3, Sentry, Kamal.