WiceGrid: Missing block for the grid helper

丶灬走出姿态 提交于 2019-12-12 01:26:25

问题


I am continuing my project using the wice grid. The undefined method capable_of_hosting_filter_related_icons? error was resolved with the help of SO. I am not getting WiceGrid: Missing block for the grid helper.. I was reading through the api and added the other html, id and class attributes. No luck. Below is my view:

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

  [...]                                 

  link_to('Edit', vendor_index_path(vendor))

回答1:


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



来源:https://stackoverflow.com/questions/33710412/wicegrid-missing-block-for-the-grid-helper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!