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.
您可以使用元搜索按嵌套资源排序吗?
一般,item.customer_id
item.customer_id
所以排序是<%= sort_link @search, :customer_id %>
<%= sort_link @search, :customer_id %>
但想按customer.first_name
customer.first_name
<%= sort_link @search, :customer_first_name %>
应该管用