Skip to content

Monthly Archives: November 2008 launch

I was tired of not having up to date docs for the rails gems and plugins that I use, so I created Bascially, anyone is free to submit any github based rails plugin or gem and it will be kept up to date on Once it’s approved it will be automatically updated within […]

testing named scopes

Named scopes are a nice feature that came out in rails 2.1, however, testing them is not very obvious. Say we have a named scope in our member object which looks like this: class Member < ActiveRecord::Base named_scope :active, {:conditions => {:status => Member::STATUS_ACTIVE}} end There are 2 things we need to do to test […]