GeoRSS aggregator and Layar augmented reality server
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

11 satır
464 B

  1. class User < ActiveRecord::Base
  2. authenticates_with_sorcery!
  3. # attr_accessible :email, :password, :password_confirmation
  4. validates_presence_of :email
  5. validates_presence_of :password, :on => :create
  6. validates_uniqueness_of :email
  7. validates_length_of :password, :minimum => 3, :message => "password must be at least 3 characters long", :if => :password
  8. validates_confirmation_of :password, :message => "should match confirmation", :if => :password
  9. end