:entry_name 对于 will_paginate 不会改变;不工作?
有谁知道为什么条目名称没有更改为我想要的名称?
<div class="digg_pagination">
<div class="page_info">
<%= page_entries_info @user_prices, :entry_name => 'Price', :plural_name => 'Prices' %>
</div>
<%= will_paginate @user_prices, :container => false %>
</div>
我已经尝试摆脱 :plural_name
选项,但这也不起作用。可能是什么问题?
Does anyone know why the entry name isn't changing to what I want?
<div class="digg_pagination">
<div class="page_info">
<%= page_entries_info @user_prices, :entry_name => 'Price', :plural_name => 'Prices' %>
</div>
<%= will_paginate @user_prices, :container => false %>
</div>
I already tried getting rid of the :plural_name
option but that didn't work either. What could be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在某些时候,
page_entries_info
中的:entry_name
选项已更改为:model
。所以你现在可以这样做(至少在 3.0.2 中):
At some point the
:entry_name
option inpage_entries_info
has changed to:model
.So you can now do (in 3.0.2 at least):
看起来这只是一个将分页的错误,所以我只是进入翻译文件本身并执行以下操作:
config/en.yml
Looks like its just a bug for will paginate so I just went into the translation file itself and did the following:
config/en.yml