Want to write a Ruby book for a major publisher?




Evan Henshaw-Plath (more commonly known as rabble) is in the process of writing a book for O'Reilly about testing and debugging Ruby on Rails applications, and has just launched a companion blog, Testing Rails. The subject of the blog is exactly what the title says, and rabble hopes to post at least one in-depth tutorial relating to Rails and testing each week. The first is Building Tests from Logs - Test Driven Debugging.

ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!( :default => "%m/%d/%Y", :date_time12 => "%m/%d/%Y %I:%M%p", :date_time24 => "%m/%d/%Y %H:%M" )
Richard Leonard demonstrates how to use the date formats that come with Rails, as well as how to override or add some of your own directly into Rails' helpers on the fly.

Mathew Abonyi has made available the initial release of PluginTestKit, his test kit designed to make implementing testing for plugins easy. If you're actively developing plugins and bemoaning the lack of a decent test system, check it out.


Shane Vitarana, creator of Rails Stats, has released a new plugin, acts_as_most_popular. acts_as_most_popular adds a method for each column in your model's table called most_popular_* that returns an array of the most popular entries within that column. For example, if you have 1000s of users in your user table, User.most_popular_names would return an array with the most popular names, as found in the name column.
Learn more here. This seems like the sort of thing that might eventually be useful as a Calculation of some kind.
Continuing the Troll Of The Month feature, I came across this gold today: "Who are these mongrel Ruby developers?" by Peter Thomas, a Java developer. It was posted in late July, but as I've only just found it, and it came after July's TOTM, it counts.
