|
|
@ -1,5 +1,4 @@ |
|
|
|
class UserProfile < ActiveRecord::Base |
|
|
|
# Setup accessible (or protected) attributes for your model |
|
|
|
attr_accessible :user_id, :addrStreet1, :addrStreet2, :addrCity, |
|
|
|
:addrState, :addrZip, :phone |
|
|
|
|
|
|
@ -10,7 +9,7 @@ class UserProfile < ActiveRecord::Base |
|
|
|
#validates :addrCity , :presence => true |
|
|
|
#validates :addrState , :presence => true |
|
|
|
#validates :addrZip , :presence => true |
|
|
|
validates :phone, :presence => true |
|
|
|
#validates :phone, :presence => true |
|
|
|
|
|
|
|
def to_s |
|
|
|
[addrStreet1, addrStreet2, addrCity, addrState, addrZip, phone].join(" - ") |
|
|
|