- 28AprPosted by Tanel Suurhans in Software Development
I have been digging around the Rails source a lot since the last time I shared my discoveries. Seeing how popular the post was, I have collected a small list of interesting, potentially useful and clever bits of code I [...]
- 21AprPosted by Tanel Suurhans in Software Development
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 similar problem, from a bit different angle – we needed to track [...]
- 15AprPosted by Tanel Suurhans in Software Development
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 and new versions of rails. And in addition to that I’m going [...]
- 13AprPosted by Tanel Suurhans in Software Development
Generally, when someone wants to ensure that a models field is unique, they use a database unique index in conjunction with validates_uniqueness_of :field. The problem with this approach is that while the validation rule will hit the database checking if [...]
- 12AprPosted by Tanel Suurhans in Software Development
I need confirmation dialogs, I need them to be dynamic, unobtrusive, custom styled and flexible. Most of the conditions rule out the built-in
confirm()function in Javascript.
So I decided to build my own with jQuery and share the basic ideas behind the solution.
