开发者

rails metasearch sort by nested resource

开发者 https://www.devze.com 2023-02-27 04:30 出处:网络
Can you sort by nested resource with metasearch? norm开发者_如何转开发ally, item.customer_id so sort would be <%= sort_link @search, :customer_id %>

Can you sort by nested resource with metasearch?

norm开发者_如何转开发ally, item.customer_id

so sort would be <%= sort_link @search, :customer_id %>

but would like to sort by the customer.first_name


<%= sort_link @search, :customer_first_name %>

should work

0

精彩评论

暂无评论...
验证码 换一张
取 消