How to Debug Rails Apps

At any point in time, you can run into an error in your Rails App, but don't worry as debugging can be easy with the help of multiple gems...

Nov 20, 2014 on Rails Ruby Gem  0

Reduce Your SQL Queries With a Counter Cache

Counter caching is a technique to reduce the number or SQL queries when attempting to call count on a resources' association...

Nov 17, 2014 on Rails Ruby ActiveRecord SQL  0

Metaprogramming with Method Missing

In Ruby, you can extend the language significantly to suit your preferences, and even overide methods already used by the language itself...

Nov 12, 2014 on Ruby Metaprogramming  0

When Is It Okay to Monkey Patch?

Monkey Patching is a term in Object-Oriented Programming when you open up an existing class and add new methods to it...

Nov 03, 2014 on Ruby Metaprogramming JavaScript ActiveSupport  0

Taggable Rails

The popular social media website Twitter has made features such as tagging through their system of hashtags very intuitive and fun...

Oct 30, 2014 on Rails Ruby Gem  0

You Got Your Params in My URL

Oftentimes as Rails developers, we will run into a situation where we are making something polymorphic, and we won't want to make any more controllers than m...

Oct 29, 2014 on Polymorphism Rails Ruby  0

Don't use Metaprogramming When You Can Just Throw Classes at Things

Ruby has very powerful support for metaprogramming, which is also known as code that writes code, but it can be difficult to understand what is going on...

Oct 28, 2014 on Ruby Metaprogramming  0

Raw SQL on Rails

ActiveRecord is fantastic, but sometimes if you are doing complex joins and such, you may need to move away from ActiveRecord and write raw SQL...

Oct 15, 2014 on Rails Ruby ActiveRecord SQL  1

Mock external services with a VCR

When creating an Rails App using TDD, sometimes you will come across the need for an external service, for example, using the Google Maps API...

Oct 10, 2014 on Rails Ruby TDD Gem  1

Devise Guest User

Using Devise in Ruby on Rails can be very convenient for authentication, but there are some necessary workarounds that you must be aware of, specifically whe...

Oct 09, 2014 on Rails Ruby Gem Devise Authentication SoftwarePatterns  0