WiceGrid: Missing block for the grid helper

178 views Asked by At

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

There are 1 answers

3
Jones Agyemang On

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