Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created November 29, 2016 15:32
Show Gist options
  • Select an option

  • Save nicolasblanco/2a5b99ece534386dcddd78579695a3f9 to your computer and use it in GitHub Desktop.

Select an option

Save nicolasblanco/2a5b99ece534386dcddd78579695a3f9 to your computer and use it in GitHub Desktop.
wizard rails app
class User < ApplicationRecord
validates :email, presence: true, format: { with: /@/ }
validates :first_name, presence: true
validates :last_name, presence: true
validates :address_1, presence: true
validates :zip_code, presence: true
validates :city, presence: true
validates :country, presence: true
validates :phone_number, presence: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment