Skip to content

Instantly share code, notes, and snippets.

@rocodev-tech
Created June 13, 2014 04:30
Show Gist options
  • Select an option

  • Save rocodev-tech/97e13fd28cf851bc808f to your computer and use it in GitHub Desktop.

Select an option

Save rocodev-tech/97e13fd28cf851bc808f to your computer and use it in GitHub Desktop.
app/models/order_info.rb
class OrderInfo < ActiveRecord::Base
belongs_to :order
validates :billing_name , :presence => true
validates :billing_address , :presence => true
validates :shipping_name , :presence => true
validates :shipping_address , :presence => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment