acts_as_geocodable验证错误

时间:2011-05-30 04:29:50

标签: ruby-on-rails ruby-on-rails-3

提交包含acts_as_geocodable错误的模型时,会显示相同的验证错误。有什么想法在这里发生什么?

acts_as_geocodable errors

  create_table "skateparks", :force => true do |t|
    t.string   "name",                                :null => false
    t.text     "description"
    t.string   "street"
    t.string   "locality"
    t.string   "region"
    t.string   "postal_code"
    t.string   "country"
    t.float    "latitude"
    t.float    "longitude"
    t.boolean  "indoor"
    t.boolean  "outdoor"
    t.string   "ownership"
    t.string   "phone"
    t.text     "website"
    t.string   "email"
    t.boolean  "delta",          :default => true,    :null => false
    t.integer  "square_footage"
    t.boolean  "restrooms"
    t.boolean  "lights"
    t.boolean  "skateshop"
    t.string   "cached_slug"
    t.string   "status",         :default => "draft", :null => false
    t.integer  "photos_count",   :default => 0
    t.integer  "comments_count", :default => 0
    t.integer  "ratings_count",  :default => 0
    t.integer  "lock_version",   :default => 0,       :null => false
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "builder_id"
    t.integer  "designer_id"
  end

0 个答案:

没有答案