public
Created

Adding SMS capabilities to your Rails Application

  • Download Gist
user.rb
Ruby
1 2 3 4 5 6
class User < ActiveRecord::Base
attr_accessible :email, :name, :phone
 
validates :name, presence: true
validates :email, :phone, presence: true, uniqueness: true
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.