0

我正在使用 wice 网格继续我的项目。undefined method capable_of_hosting_filter_related_icons?在 SO 的帮助下解决了该错误。我没有得到WiceGrid: Missing block for the grid helper..我正在阅读 api 并添加了其他 html、id 和 class 属性。没运气。以下是我的看法:

-grid(@vendors_grid) do |g|                  
  g.column name: 'ID', attribute: 'ID'do |vendor|                    
  vendor                          

  [...]                                 

  link_to('Edit', vendor_index_path(vendor))
4

1 回答 1

0

尝试g.column(name: 'ID', attribute: 'ID') do |vendor|

于 2015-11-14T16:27:46.903 回答