我有一个名为 Review.rb
的模型class MovieNews::Review
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Userstamp
include Mongoid::Search
field :story, type: String
end
当我创建一个类评论实例并尝试在字段中保存哪个本地语言泰卢固语时,我的输出错误。
练习1:
review = MovieNews::Review.new
review.story = "నటవర్గం" after pasting here it's spelling goes worng "నటవర్.."
review.save => true
Mongodb是否支持使用本地语言来创建集合? 有人请帮帮我。
答案 0 :(得分:0)
Kumar尝试这个
review.story = "నటవర్గం\" after pasting here it's spelling goes worng \"నటవర్.."
看起来你在使用没有反斜杠的引号
的情况下打破了这两个时刻