Tutorials

I created the same app with Rails and no Javascript
Last year I wrote a blog post, “I created the same application with Rails and Javascript”, following a trend of posts where the author Sunil Sandhu did the same comparing a few frontend Javascript libraries.My approach in that blog post was using ...


Why you should avoid nested STI | ActiveRecord, Rails 6
Nested Single Table Inheritance doesn’t work well. Here’s what you must know to make it work or work around it. Initial specifications: a project owner creates a project and donors can contribute.Later, a little change was made to the specificatio...



Comparison of approaches to multitenancy in Rails apps
You can implement multitenancy on a couple different levels. If you’re on PostgreSQL:Row level (putting tenant_id columns to every table and filtering everywhere).Schema level (namespaces is a more explanatory name, see PostgreSQL schemas).Databas...


