17 posts tagged with "rails"

    October 22, 2020

    Determine all the associations for your ActiveRecord model, no matter how sprawling.

    August 08, 2015

    Ruby monkeypatching is a dangerous, but necessary tool. It is convenient to add new behaviours to existing classes, or to replace existing…

    April 22, 2015

    You can mimic the end-user’s UI experience accurately enough by running application code locally, but what about the backend? Once your code…

    March 25, 2015

    Another brilliant Rails troubleshooting technique I have recently added to my toolbox is as an add-on to . 1. Add and to the development…

    February 02, 2015

    I am working on upgrading an application from Rails 3.0 to Rails 3.2. While the numbers tell you it is a minor version change, there are…

    January 22, 2015

    Single table inheritance (STI) is a way to emulate object-oriented inheritance in a relational database by storing multiple object types in…

    January 18, 2015

    “It is impossible to create an abstraction unknowingly or by accident,” says Sandi Metz in Practical Object Oriented Design in Ruby. An…

    January 10, 2015

    I was recently fixing a failing test and discovered that Ruby and Rails implement and in confusing and occasionally opposite ways. In…

    December 28, 2014

    I have once more been working my way through Sandi Metz’ Practical Object-oriented Design in Ruby (POODR) for a few weeks, and developed a…

    October 30, 2013

    I am building an application that uses several nested attributes: Users have many Goals (Goals belongto Users), and Goals have many Hours…

    October 19, 2013

    I have been building a new project and getting creative with views. I am working with bootstrap and jquery to develop tabbed displays, and…

    September 17, 2013

    I am between computers at the moment, and I really really miss my OSX development environment. Dependency installation is so smooth and…

    July 15, 2013

    What is Mass Assignment? Mass assignment is using a ruby-esque shortcut to interact with models: This is NOT mass assignment. Each param is…

    June 29, 2013

    Following along with Rails tutorial by Michael Hartl, I built a sample app with a simple database, linking users to microposts in a twitter…

    April 13, 2013

    My page wouldn’t flash the user. Trundling along the Hartl railstutorial, I needed to write some logic to allow a user to update their…

© Katie Leonard 2025