-
Learn how to strike a balance between flexibility and data integrity with a partial index and validations.
-
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.
Sign up to receive a weekly recap from thoughtbot