Ruby Quickies
January 29th, 2008
- RoleRequirement Upgrade Instructions
- If you love your open source project, send it into the wild. Or is Rfacebook ceding to Facebooker ...err no wait
- What are you working on?
- Add in your own custom date formats:
#in environment.rb sweet_date_formats = { :sweet_dates => '%B %d, %Y %I:%M%p' } #put more than one #inject them into rails ActiveSupport::CoreExtensions::Time::Conversions:: DATE_FORMATS.merge!(sweet_date_formats) ActiveSupport::CoreExtensions::Date::Conversions:: DATE_FORMATS.merge!(sweet_date_formats)
February 15th, 2008 at 01:19 PM The above date code won't work in rails 2.*.* You'll need to move it from environment.rb to an initializer (config/initializers).