Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就我而言:
portfolio_items.published.sorted.entries.index { |x| x.id == item.id }
有没有办法不必调用“条目”,而是直接从 mongo(id) 获取这个值?