Tag Archive: Ruby on Rails

Advisory locking with ActiveRecord

Not too long ago we had a problem with doing (almost) guaranteed inserts for columns with unique constraints on them (see this post). Today I was facing a…

Building Rails 3 custom validators

Actually this post is not so much about just building custom validators for Rails 3 but more like a in-depth introduction to how validations work in the old…

Ruby on Rails before_render filter

You probably have used, or at least seen, ActionController::Filters used in lots of Ruby on Rails based applications. Usually it’s related to some authentication/authorization, or benchmarking or something…

Small team goes a long way

Few days ago I was talking with a friend of mine about different approaches in software development. One of the thoughts that we discussed for quite a while…

Custom dynamic error pages in Ruby on Rails

So you have finished building your Rails application, done some polishing and suddenly you notice that something went horribly wrong in production and you get the well-known default…

Make your Capistrano Growl

Last week, while trying to find some fancy recipes and snippets for Capistrano, I had an idea to use Growl for deployment notifications to let everyone important know…