Caching models with memcached

The Robot Co-op has released their memcache-client and a plugin for Active Record that uses it. This enables you to cache your models in the distributed memory cache and not hit your database for repeat visits all the time. They use this to power 43things and the rest of their social suite.

SwitchTower with Bazaar-NG

Damien Merenne has just announced a Bazaar-NG SCM module for SwitchTower. All you bzr users now have one less reason to not use SwitchTower.

Damien has given permission for this module to be included in the next SwitchTower release, too. If you’ve got a pet SCM that you’d like to see supported by SwitchTower, just take a look at Damien’s code to see how little it really takes to implement a new SCM module. Then, implement it and submit it as a patch to http://dev.rubyonrails.org/newticket.

Rapid Web Development mit Ruby on Rails

Ralf Wirdemann and Thomas Baustert have released Rapid Web Development mit Ruby on Rails. The first German book on Rails and published by Hanser. It should be available in stores from Monday, January 16th.

About the book, Ralf and Thomas write:

The book is a practice-oriented introduction into Rails and all of its sub-frameworks. The book focuses furthermore on some advanced topics as i18n with Rails or test-driven web development with Rails.

As a extra bonus, they’re even giving away a free introduction to Ruby that didn’t fit in the book. Congratulations, guys!

More templating choice with Markaby for Rails

why the lucky stiff and Tim Fletcher have released a pretty cool templating language for Rails called Markaby that looks like Builder, but assumes a few more things to make it even more succinct and targeted against HTML. An Example:

 html do
   head do
     title action_name
     stylesheet_link_tag 'scaffold'
   end
 
   body do
     p flash[:notice], :style => "color: green" 
     self << @content_for_layout
   end
 end

All you need to do is install the Markaby plugin and you can start creating .mab files. Very cool.