Ruby for Rails: Ruby Techniques for Rails Developers

Posted by Daniel Butler Wed, 03 May 2006 13:41:00 GMT

David A. Black is releasing a new book entitled Ruby for Rails: Ruby Techniques for Rails Developers, which will help you take your Ruby skills to the next level of zen while working within the Rails framework. He writes, "Ruby for Rails helps Rails developers achieve Ruby mastery. Each chapter deepens your Ruby knowledge and shows you how it connects to Rails. You’ll gain confidence working with objects and classes and learn how to leverage Ruby’s elegant, expressive syntax for Rails application power. And you'll become a better Rails developer through a deep understanding of the design of Rails itself and how to take advantage of it."

Read on for a short review.

Book Home Page at Manning Publications
Order Book from Amazon.com

Read more...

Posted in  | Tags , ,  | 3 comments

ISO 8601 Dates in Ruby on Rails

Posted by Daniel Butler Thu, 13 Apr 2006 19:26:00 GMT

If you would like ISO 8601 time and date formatting by default in your Ruby on Rails application, add the following code to your environment.rb file:

ActiveSupport::CoreExtensions::Time::Conversions::DATE_
FORMATS.update(:default => '%Y-%m-%d %H:%M:%S')
ActiveSupport::CoreExtensions::Date::Conversions::DATE_
FORMATS.update(:default => '%Y-%m-%d')

Read more...

Posted in ,  | Tags , ,  | 2 comments