Notes to self

Business Class 2.0 with Rails 8, Pay 8, Solid, Kamal 2, and fancy generator

The Ruby on Rails template Business Class gets a whole new edition. Rails 8, new licencing, and improved CRUD generator.

Business Class 2.0

The new Business Class is built on top of Rails 8, Pay 8, Solid Trifecta libraries, and Kamal 2. Solid Trifecta is now the default and Redis dependency was removed, simplifyng everything. Also, Action Policy got added to finally refactor authorization. An overall update of dependencies but that’s not all!

CRUD Generator

The CRUD generator got much better. It will now give you bulk actions both for team views (as grid) and admin views (as table). All destructive actions load a confirmation HTML dialog view with Hotwire.

I was also able to fix the previous limitation of simple models and you can now generate models like my_shop/product or garage/fancy_car giving you a beautiful start for your well-architected domain model.

The refreshed generator now also generates policy files so you literally get a whole CRUD for a team-resource without much work.

Kamal 2

Kamal configuration got updated to its second major version and to handle the new Solid libraries. Business Class now also explicitely provides a custom production.conf for any necessary tuning and provisioning sets up unattended upgrades.

Note that you can use Business Class with managed database or even without Kamal. It’s just Kamal-ready if you need it to be.

Design and demo

The default design got improved in details and screens got much more coherent.

Here’s a demo.

Licencing

The new license gives you lifetime access to Business Class, no need for any kind of renewals. There is a more expensive version for agencies, but even that one is now with lifetime access.

Check out my book
Interested in Ruby on Rails default testing stack? Take Minitest and fixtures for a spin with my latest book.

Get Test Driving Rails and make your tests faster and easier to maintain.

by Josef Strzibny
RSS