class Address < ActiveRecord::Base
  belongs_to :user
  validates :state, length: { maximum: 2 }
  validates :user_id, :city, :state, :zip_code, presence: true
  geocoded_by  :zip_code
  after_validation :geocode
end

class Address < ActiveRecord::Base
  belongs_to :user
  validates :state, length: { maximum: 2 }
  validates :user_id, :city, :state, :zip_code, presence: true
  geocoded_by  :zip_code
  after_validation :geocode

  def city_state
    "#{city}, #{state}"
  end
end

Add method to print both city and state
Add method to print both city and state
