Thursday, July 03, 2008

How-to Revision-Stamp Your Rails Apps

It's the little things that make me happy. Like a nifty technique for automagically revision-stamping a Rails application.
Capistrano, after it exports an application from an SCM repository (such as a Subversion repository), writes an extra file to the application’s root directory. The file is named “REVISION”, and, as you might imagine, it contains the revision number that was exported. Displaying this information in your application’s UI is straightforward. Here’s the addition I made to a view partial that is displayed on the application’s home page:

Click the link for the rest. I love stuff like this. Also this ...

Fort Rock in Lake County, Oregon. My grandparents lived near here for a few years, raising alfalfa, then selling and servicing irrigation equipment.
blog comments powered by Disqus