Ruby on Rails Thursday, July 9, 2015

I have a Model called Review.rb

class MovieNews::Review          include Mongoid::Document          include Mongoid::Timestamps          include Mongoid::Userstamp          include Mongoid::Search            field :story,   type: String  end

When i create a instance of class review and tried saving which local language telugu in the field, im getting wrong output.

Ex1:

review = MovieNews::Review.new  review.story = "నటవర్గం" after pasting here it's spelling goes worng "నటవర్.."  review.save => true

Does Mongodb supports local languages to create collection? Someone please help me out.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/661c754c-7760-4c08-95d2-aa2b8d77a102%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment