@Rei 悲催!我看看!
@Teddy @lionzixuanyuan @Rei 谢谢!
MOPED: 127.0.0.1:27017 COMMAND database=meiyuewuyou_development command={:count=>:products, :query=>{"category_ids"=>{"$all"=>[9, 2, 6]}}} (0.4029ms)
=> #<Product _id: 3, _type: nil, created_at: 2013-04-27 01:37:21 UTC, updated_at: 2013-04-27 05:30:24 UTC, liked_user_ids: [], likes_count: 0, name: "干爽网面", howmany: nil, price: 0, exprice: 0, inprice: 0, size: "", use: nil, feature: "", inventory: 0, sales: 0, cover: 0, selling: true, barcode: "12121121212", special_offer: false, node_id: 1, manufacturer_id: 6, category_ids: ["2", "6", "9"], identifier: "", smell: "">
但是搜索没结果,是不是category_ids有顺序限制?
@Teddy 要自己写语句?
@lukefan 多对多下,如果 params[:tag_id] 是一个 id 数组呢?就是 [1,2,3] 查询出同时有这个的 article!
@1272729223 有联系方式?
@1272729223 得闲试试!前端高手,膜拜!
@ywencn 这个不是 mongoid 的!
@HungYuHei 谢谢,用 atomic 可以解决!
@sandy_xu 我的情况和他的不同!
class Picture
belongs_to :imageable, :polymorphic => true
end
class Deal
has_many :pictures, :as => :imageable, :dependent => :destroy
end
class SanitaryTowel
has_many :pictures, :as => :imageable, :dependent => :destroy
end
MOPED: 127.0.0.1:27017 QUERY database=meiyuewuyou_development collection=pictures selector={"imageable_id"=>213, "imageable_type"=>"SanitaryTowel", "imageable_field"=>{"$in"=>[:pictures, nil]}} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.4086ms)
其中一条,但是没返回错误! 情况是,执行了,但是没保存进数据库!
好像是 p.update_attributes 不能保存!
@jasl 是开发环境
修改app/assets/javascripts/ueditor_config.js.erb里面的 toolbar,没效果的?
好的,谢谢! @ywencn 哈哈,如果没提醒,忽然忽略了就不好了
@DavidWei 这个问题最后你是如何解决的?
@rubyonme @helloqidi 这个问题最后如何解决?有详细的解决办法吗?
@xds2000 解决,要把include AASM放在第一位!
@xds2000 遇到这个错误了,google 找不到解决办法! SystemStackError - stack level too deep: