Ruby

Faker Gem - A Quick and Dirty Introduction
One of the first ruby gems I used was the Faker Gem, a nice little ruby gem that ...wait for it... Fakes Data! Usage is simple; first grab the gem using your gem program: $sudo gem install faker Now you can use it in your favorite ruby program or script. For now let's fire up irb and see what we can fake. require 'rubygems'require 'faker' #Let's see if we can make a fake person...person_name = Faker::Name.nameperson_email = Faker::Internet.emailperson... = Faker::Company.nameperson_c...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, January 18, 2010 7:57 PM | Feedback (1)

Using ActiveRecord with SQL Server 2000/2005/2008
On a recent project I needed to test my application with lots of data so I remembered my good friend the Faker Gem from the Ruby world. I didn’t know how to connect ActiveRecord to SQL Server, so I searched the webs and found this article by Ray Houston at Los Techies. Unfortunately since the article was 13 months old, the Ruby libraries have evolved to not work that way anymore :) So after some head scratching I got it to work again. How to connect ActiveRecord to SQL Server If you don’t have Ruby...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Monday, August 17, 2009 12:11 AM | Feedback (3)