Smart Phone Tools
About ruby on rails, hackintosh, iphone3g and etc.
Tuesday, April 28, 2009
Get Month Name in Rails
To get month name as constants, do the following
require 'date'
for i in (1..12)
@month = Date::MONTHNAMES[i]
end
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2010
(3)
►
February
(1)
►
January
(2)
▼
2009
(45)
►
December
(6)
►
November
(2)
►
October
(4)
►
September
(1)
►
August
(1)
►
May
(4)
▼
April
(4)
Calendar Date Select for Ruby on Rails
Date Calculation in Rails
Get Month Name in Rails
Date Format in strftime
►
March
(2)
►
February
(9)
►
January
(12)
►
2008
(6)
►
October
(6)
No comments:
Post a Comment