You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
search("search_admin_orders_path")do |s|
s.eq"id"s.eq"user.id"s.eq"handyman.id"# FIXME: There is no need to ensure the searching attributes are defined in# the `attributes("Order")` fields, since the latter is only used for# visually displaying explicit columns in the table of the index page.# Therefore we should allow the attributes not explicitly demonstrated in# the model attribute fields for searching purposes.s.eq"user.phone"s.eq"handyman.phone"end
@hymRedemption 假设我希望在 Order Dashboard 中定义以下搜索属性:
因为后面两个
phone
属性未在attributes("Order")
中得到定义,访问该页面时会抛出异常。这是不是不太符合预期呢?因为 attributes("Order") 中定义的是订单列表中显式展示的列,但搜索的属性应该可以不在其中,我觉得两者应该没有直接的关联。The text was updated successfully, but these errors were encountered: