Posts Tagged ‘activerecord’

Inside Ruby on Rails: extract_options! from Arrays

September 22nd, 2009 at 11:18 am • permalink3 comments

extract_options! extracts the options from the given set of arguments splitting the list of arguments from the options.

Testing Rails: How to test Rails ActiveRecord Named Scopes

June 17th, 2009 at 9:37 am • permalink4 comments

How to effectively test ActiveRecord named scopes in Rails without querying the database.

Validating the format of an URL with Rails

April 30th, 2009 at 6:34 am • permalink1 comment

A super simple Rails validator for URL based on Ruby URI library.

Follow Me
    Random Quote