-
A look at the Postgres array type and good old join tables, each with their advantages and disadvantages.
-
Re-use collection query logic within model instances to avoid duplication and get the best performance.
-
Running a separate query to count how many records are associated with another record is inefficient. Using a counter cache can save the day!
-
How do you manage queries when your Rails application isn’t the only thing reading your database?
-
Read this the next time you need to build a complicated form.
-
Caching HTTP responses forever, a fix for when your terminal is acting weird, and more!
-
A guide on web security, DeMorgan Laws, force-pushing without losing your work, and more!
-
Superglue creator Johny Ho answers a beginner’s questions about the new React+Rails framework.
-
Branching early helps structure multi-step forms.
-
Rails writes a new cache entry based on the first request. But what happens when that request is from an admin?
Sign up to receive a weekly recap from thoughtbot