简体   繁体   中英

WiceGrid: Missing block for the grid helper

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))

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM