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.
I feel good going into project mode for the Sinatra application. With my Burger Finder app under my belt, I know what worked, what to expect and what did not work for me last time. I wanted to approach this project with a plan so that I could work efficiently. I keep a running list […]
It’s project week! This means I have been spending my available time working on my Sinatra application. User sessions are one of the requirements. It involves enabling sessions and assigning a secret key or word to that session. Which had me thinking, what is the purpose of a secret word if it can be seen […]