u kunt uniciteit in uw model valideren
validates :email, :uniqueness => :true
of je kunt RecordNotUnique zo in je controller redden
begin
# create user
rescue ActiveRecord::RecordNotUnique => e
# handle duplicate entry
end
u kunt uniciteit in uw model valideren
validates :email, :uniqueness => :true
of je kunt RecordNotUnique zo in je controller redden
begin
# create user
rescue ActiveRecord::RecordNotUnique => e
# handle duplicate entry
end