Ruby

Light Authentication With Monban

If you want to have user authentication on Rails, but don't require something as hard hitting as Devise or Clearance, Monban is the way to go...

Jul 08, 2014 on Rails Ruby Gem Authentication  0

Three Tables Are Better Than Two

In SQL, you can't have two tables that have each other's foreign key, you must use a third table to hold the foreign keys of the relationship...

Jul 10, 2014 on Rails Ruby ActiveRecord SQL  0

How to Work With Le Gems in Ruby on Rails

In Ruby, there is a huge community of packages, a lot of which interact with Ruby on Rails...

Jul 11, 2014 on Rails Ruby Gem  0

What's the Point of TDD

At Metis, we haven't been using test driven development to help develop our Ruby on Rails apps...

Jul 14, 2014 on Rails Ruby TDD  0

to_param, the Best Method Ever

If you want to create vanity URLs, and who doesn't, then to_param is the method for you...

Jul 15, 2014 on Rails Ruby Prettyurls  1

User has_many selfies

When creating a self referential join through another table, you must think of each entry as a new row even if two of the columns have the same number, but...

Jul 16, 2014 on Rails Ruby ActiveRecord  0

Polymorphism, Very Difficult? Or Suprisingly Simple?

I have heard of a polymorphic relationship before, and it was difficult to wrap my head around but it is actually very simple, as it has similarities with ...

Jul 18, 2014 on Polymorphism Rails Ruby  0

Polymorphic Controllers???

That's right, polymorphic controllers in Ruby on Rails...

Jul 21, 2014 on Polymorphism Rails Ruby Metaprogramming RegularExpressions  0

Ruby Enumerable, Part 1

The Enumerable module in Ruby can be used for arrays and hashes and can save you from writing complex, nested if statements and loops...

Jul 31, 2014 on Ruby  0

Keep Your Queries DRY with Eager Loading

The N + 1 query problem can be very tricky to deal with or even find because you won't be typically dealing with a lot of data in development mode...

Aug 01, 2014 on Rails Ruby Performance  0