ruby-on-rails – 未初始化的常量ActionView :: CompiledTemplat
发布时间:2020-12-16 22:12:27 所属栏目:百科 来源:网络整理
导读:我已经安装了will_paginate-bootstrap gem来使用bootstrap样式分页.在我看来,我有这个: %= will_paginate @mylist,renderer: BootstrapPagination::Rails % 但它返回此错误 uninitialized constant ActionView::CompiledTemplates::BootstrapPagination 解
我已经安装了will_paginate-bootstrap gem来使用bootstrap样式分页.在我看来,我有这个:
<%= will_paginate @mylist,renderer: BootstrapPagination::Rails %> 但它返回此错误 uninitialized constant ActionView::CompiledTemplates::BootstrapPagination 解决方法
如果您已成功捆绑所有宝石,那么它应该像这样工作.
<%= will_paginate @mylist,:renderer => BootstrapPagination::Rails %> 安装gem后请确保已重新启动服务器. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |