Vote for me as Ruby on Rails Thinker of the Year in the Hacker Noon 2020 Noonies.
Ruby on Rails generators are good at doing the manual work for you. However, small mistakes like the wrong noun form (singular or plural) can be amplified and cause functionality errors.
What is the most common item in your database? This post outlines working with has_many, through relationships in Ruby and how to query and sort the data to get the most popular item.
Object model associations can be difficult. Here’s how to debug them.