Skip to content

Instantly share code, notes, and snippets.

@Irio
Created February 22, 2012 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Irio/1886102 to your computer and use it in GitHub Desktop.
Save Irio/1886102 to your computer and use it in GitHub Desktop.
Solution for "undefined method `today' for Date:Class" on Ruby
1.9.2-p290 :001 > Date.today
NoMethodError: undefined method `today' for Date:Class
from (irb):1
from /home/irio/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
1.9.2-p290 :002 > require 'date'
=> true
1.9.2-p290 :003 > Date.today
=> #<Date: 2012-02-22 (4911959/2,0,2299161)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment