【问题标题】:WiceGrid: Missing block for the grid helperWiceGrid:网格助手的缺失块
【发布时间】:2015-11-14 16:08:56
【问题描述】:

我正在使用 wice 网格继续我的项目。在 SO 的帮助下解决了 undefined method capable_of_hosting_filter_related_icons? 错误。我没有收到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))

【问题讨论】:

    标签: ruby-on-rails ruby wice-grid


    【解决方案1】:

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

    【讨论】:

    • 你的代码是否在 GitHub 上公开,我可以在我的机器上本地运行?
    • 不,不是,但我可以推动它。稍后会这样做。
    • 项目已推送。这是网址:github.com/shredthered/projectsample.git
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-30
    • 1970-01-01
    • 2019-05-21
    • 1970-01-01
    • 2015-03-17
    • 1970-01-01
    • 2019-04-06
    相关资源
    最近更新 更多