-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
I have a Store model
Unable to find source-code formatter for language: `. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
class Store include Mongoid::Document field :name, type: String ....... field :hidden, type: Boolean, default: false end
`
but when saving hidden = true y get false
Unable to find source-code formatter for language: `. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
=> #<Store _id: 5252fdf424f1e7fbf7000004, name: "AOE", description: "", address: "Calle 1000", web: "http://", facebook: "", twitter: "", city: "aoe", phone: "123", coordinates: [-72.2434997, -50.34474179999999], category: "Pub", time_zone: "Santiago", currency: "CLP", payment: 1.0, billing_date: 28, tipping: false, tip_amount: 10.0, verified: false, deleted: false, active: false, hidden: true, created_at: 2013-10-07 18:31:19 UTC, updated_at: 2013-12-17 21:53:34 UTC> irb(main):002:0> s.hidden = true => true irb(main):003:0> s.save => false irb(main):004:0> s.errors => #<ActiveModel::Errors:0x007fbcc83791c8 @base=#<Store _id: 5252fdf424f1e7fbf7000004, name: "AOE", description: "", address: "Calle 1000", web: "http://", facebook: "", twitter: "", city: "aoe", phone: "123", coordinates: [-72.2434997, -50.34474179999999], category: "Pub", time_zone: "Santiago", currency: "CLP", payment: 1.0, billing_date: 28, tipping: false, tip_amount: 10.0, verified: false, deleted: false, active: false, hidden: false, created_at: 2013-10-07 18:31:19 UTC, updated_at: 2013-12-17 21:53:34 UTC>, @messages={}>
`