views:

454

answers:

1

I use Authlogic for authentication in my Rails project.

It provide default validation for email and login field.

But, I want to allow email to be null for join because my service is for mobile and it is difficult to insert email field in mobile device.

How can I skip email validation with Authlogic in Rails?

+2  A: 
class User < ActiveRecord::Base
  acts_as_authentic do |c|
    c.validate_email_field = false
  end
end
Simone Carletti