小编umm*_*...的帖子

Twitter Bootstrap与will_paginate一起使用

我让will_paginate工作正常,但我正面临错误连接Twitter Bootstrap.我的单行will_paginate链接成为项目符号列表.

<% will_paginate @thing %>
Run Code Online (Sandbox Code Playgroud)

变为:

<%= will_paginate @thing, :renderer => BootstrapPagination::Rails %>
Run Code Online (Sandbox Code Playgroud)

或者我觉得更现代:

<%= will_paginate @thing, renderer: BootstrapPagination::Rails %>
Run Code Online (Sandbox Code Playgroud)

我得到了垂直项目符号列表,我试过包括=和 - 符号,但我迷路了.

ruby-on-rails will-paginate twitter-bootstrap

4
推荐指数
1
解决办法
7720
查看次数