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…
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.
Some neat tips and discoveries from the Ruby on Rails source, shared by Tanel Suurhans.
Today I would like to introduce you something that we’ve been working on for the past few months. It’s new. It’s easy to use. It’s called Shoperb and…
Recently I ran into a case where I had two separate “acts_as” style ActiveRecord model extensions which both abused respond_to? and method_missing to dynamically provide virtual attribute support.…
While many smaller businesses have stopped supporting the legacy browsers a while ago it’s now time for major players to follow that route too. Yesterday Google announced in…
In the last post of this series ([intlink id=”how-to-create-a-wordpress-development-environment-on-mac-os-x-snow-leopard” type=”post”]How to create a WordPress development environment on Mac OS X Snow Leopard[/intlink]) we covered [intlink id=”how-to-setup-apache-and-php-on-mac-os-x-snow-leopard” type=”post”]how to…
Now it’s time to continue with setting up Apache and PHP. If you’re coming here through search engine then you probably want to check our previous posts on…