RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: case-dubs
Site: www.caseywilson.me
Just an fyi, for ruby 2.0 the syntax for the pick_winner task is User.order('random()').first (vs. User.find(:first, :order => 'random()')
Just an fyi, for ruby 2.0 the syntax for the pick_winner task is User.order('random()').first (vs. User.find(:first, :order => 'random()')