Groups
Groups
Sign in
Groups
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
Gem Mongoid: multiples order_by in embbeds_many not work?
10 views
Skip to first unread message
Rodrigo Mendonça
unread,
Aug 26, 2014, 11:15:47 AM
8/26/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rub...@googlegroups.com, rubyonra...@googlegroups.com
Example:
School embeds_many :students
In rails console:
School.first.students.order_by(:name.asc, :email.desc)
Works with name. but why ordering from second field (email) not work?? It's a bug?
I opened an issue in mongoid gem, but maybe it's a mongodb problem insted
https://github.com/mongoid/mongoid/issues/3782
--
Reply all
Reply to author
Forward
0 new messages