I18n support for validates_date_time

February 8th, 2009 2 Comments »

This simple fix uses the fact, that if the second argument to the ‘add’ method is a symbol, then a generate_message is called, which does all the voodoo of Rails 2.2 I18n. I tried to contact the original author to no avail, therefore I’ll post it here, hoping that if anyone needs it, it’ll surface […]

Accessing Subversion from Rails in an ActiveRecord way

August 27th, 2007 2 Comments »

I needed to present products and their corresponding branches and tags in Subversion in a Rails app. So I’ve come up with this quite simple solution. The GenericModel class (attached) is ihnerited by Tag, Branch and Product. The Product class supports methods find, branches and tags for which it uses ‘svn/client’. The config.yml (which is […]

Pages

Adsense