#107 ✓resolved
pulkit pancholi

Custom Validation

Reported by pulkit pancholi | May 16th, 2009 @ 02:06 AM

I read config.rb file in authlogic plugin.

In that you told that to do custom validation use below code:

class User < ActiveRecord::Base
acts_as_authentic :my_option => "my value" end

I want custom validation message for password confirmation.

For that I wrote below code:

acts_as_authentic :password_confirmation_field_validates_presence_of_options => {:message => "Password doesn't match"}

I didn't get any error but it's not working.

Can you tell me where I am wrong?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Pages