作者bypang (甚麽时候才等到你)
看板Ruby
标题[问题] Wice grid join table问题
时间Tue Dec 15 14:29:46 2009
Ruby 1.8.7 Rails 2.3.4
不知道有没有人用过wice grid这个plugin,因为它真的很冷门,google都找
不太到solutions@@
现在我需要用到它的过滤功能,不过好像不能超过一个join table,例如
order_line.product.name <-- 这样过滤是没问题的,但如果是
order_line.order.customer.name <-- 这样就不能过滤或排序了,会出现
no such column: customers.name
不知道有没有人使用过,能给点提示,谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.48.200.34
1F:→ bypang:已解决,方法是自己写:joins,而不是用:include 12/16 13:34