Archive for August, 2010

How to turn off Length Error messages on Password Confirmation fields in Authlogic

In Authlogic, if you use a password confirmation field (when creating a new user perhaps), there is an error message that shows up for that field if the User model does not validate.
Something like

is too short (minimum is 4 characters)

Seems simple enough to turn off, but I almost went mad trying to figure out how do this without completely turning off password authentication.

class User < ActiveRecord::Base
    acts_as_authentic do |c|
         c.merge_validates_length_of_password_confirmation_field_options  :allow_blank => true
    end
end

PS: It’d be nice to get all the configuration options for Authlogic in one place, with better documentation for each one.
Maybe I should get on that … it is open source software after all

Add comment August 30th, 2010

Rails 3.0 is finally here

Put on your party hats people!
The long awaited version 3 of the Rails framework is finally here
Seems like only yesterday (2007/2008) that Rails 2 was being released, and now this. Frickin’ monumental.

PS: Rails 3 works with Ruby 1.8.7 and Ruby 1.9.2 … it segfaults with 1.9.1, so remember that when upgrading your ruby installation

rails 3.0 Released

Add comment August 29th, 2010


I recommend

Linode VPS's for Rails hosting
Heroku for mindless Rails hosting
Site 5 for shared Rails hosting and all round great service

Posts by Category

Calendar

August 2010
S M T W T F S
« Jul   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  

Posts by Month