[DOCS-7745] Two problems in "tutorial/mongoid-documents.txt" Created: 26/Apr/16  Updated: 11/Jan/17  Resolved: 26/Apr/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Minor - P4
Reporter: liukun Assignee: Emily Stolfo
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 7 years, 29 weeks ago

 Description   

The two problems are both in https://docs.mongodb.org/ecosystem/tutorial/mongoid-documents/

1,The documentation defines a class not used while uses another class which
is not defined.

Defined this:

class Profile
include Mongoid::Document
field :location, type: Point
end

Use this:
venue = Venue.new(location: point) #=> This uses the mongoize instance method.
venue = Venue.new(location: [ 12, 24 ]) #=> This uses the mongoize class method.

2,A word "Note" is spelled incorrectly as "Not":
"Not that when accessing custom fields from the document, you will get a new instance of that object with each call to the getter. "



 Comments   
Comment by Emily Hall [ 27/Jul/16 ]

Closed for housekeeping on 7/27/2016 by Emily Hall.
If you require additional support, please open a new ticket for prioritization.
Thanks,
Emily

Comment by Githook User [ 26/Apr/16 ]

Author:

{u'username': u'estolfo', u'name': u'Emily', u'email': u'emily@mongodb.com'}

Message: DOCS-7745 Fix Mongoid tutorial typos

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs-ecosystem/commit/18c7bb77dbd7d88d58dfabfed03e92ae1009dec5

Comment by Emily Stolfo [ 26/Apr/16 ]

https://github.com/mongodb/docs-ecosystem/pull/359

Generated at Thu Feb 08 07:54:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.