Created
February 22, 2012 17:07
-
-
Save Irio/1886102 to your computer and use it in GitHub Desktop.
Solution for "undefined method `today' for Date:Class" on Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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