0
我正在開發我的第一個rails應用程序,所以如果答案很明顯,請原諒我。未知驗證器位置驗證器
我的用戶位置的模型看起來像這樣
class UserLocation < ActiveRecord::Base
belongs_to :uid, :class_name => User, :foreign_key => "uid"
has_one :current_location, :class_name => Location, :foreign_key => "city"
has_one :destination, :class_name => Location, :foreign_key => "city"
validates :user, presence: true
end
當我試圖把某些東西放入這個模型我得到了上述誤差。我究竟做錯了什麼?