Articles written by Tanel Suurhans

Tanel Suurhans

Tanel is an experienced Software Engineer with strong background in variety of technologies. He is extremely passionate about creating high quality software and constantly explores new technologies.


Rails 3.1 and asset pipeline

When we heard the announcement of Ruby on Rails 3.1 RC, we agreed that we upgrade one of our internal applications and check out all of the new…

Correct PayPal IPN handling with Rails

While working with different PayPal payment APIs, I have read a lot of tutorials, library code and documentation about the given matter. While there are several quite competent…

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…

Unobtrusive custom confirmation dialogs with jQuery

I need confirmation dialogs, I need them to be dynamic, unobtrusive, custom styled and flexible. Most of the conditions rule out the built-in [cc lang="javascript" inline="true"]confirm()[/cc] function in Javascript. So I decided to build my own with jQuery and share the basic ideas behind the solution.