-
Singular or Plural? A Cheatsheet for Ruby on Rails Generators
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. -
Using .inject to Find the Most Popular Item in a Has_Many, Through Relationship
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. -
Debugging Has Many, Through Relationships in Ruby on Rails
Object model associations can be difficult. Here’s how to debug them. -
Building a Wine Journal Application with Sinatra
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 […] -
Hiding Sensitive Information with Environmental Variables in Ruby
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 […]