Archive for October, 2007

Consider a case of STI where:

class User < ActiveRecord::Base
validates_uniqueness_of :name
end

class Customer < User

end

class Manager < User

end

Now try following at console:

User.create(:name => “Akhil Bansal”)
Manager.create(:name => “Akhil Bansal”)
Customer.create(:name => “Akhil Bansal”)

This will let you create three records in users table with same name, validates_uniqueness_of written in User class has no effect on it. validates_uniqueness_of automatically […]

Friday, October 26th, 2007 | No Comments

Hi all,
After really long time, I have started the further development for enhancements on the plugin Simple Captcha. Keep an eye here… You will gonna find nice things. I have some really required, useful and cool things to implement and get it to the version 2.0 with all things incorporated in that. There are a […]

Thursday, October 18th, 2007 | No Comments