rails错误——undefined method "paginate" for
来源:互联网 发布:opencv算法精解 pdf 编辑:程序博客网 时间:2024/05/01 21:09
前几天将rails升级到2.3.2了,今天在用以前熟悉的分页函数paginate时提示undefined method "paginate" for ...
一检查,发现在vendor里面装的居然是will_paginate而不是classic_paginate,汗;
install classic_paginate后,又有新的错误:
uninitialized constant ActionController::Pagination::Inflector
终于在一位老兄的博客中找到错误的原因(http://hlee.javaeye.com/blog/343330)
原来是rails升级后,版本过高的原因,与经典的paginate插件不相容了,
需要手动修改语法格式如下:
文件classic_pagination/lib/pagination.rb #100
其中,注释掉的部分是原来版本的用法
- rails错误——undefined method "paginate" for
- NoMethodError (undefined method `paginate'
- undefined method `paginate' 安装了will_paginate还报这个错误
- ruby on rails错误undefined method `title' for nil:NilClass
- rails undefined method `each’ for
- undefined method `scaffold’or `paginate’
- rails undefined method `render_text'
- rails undefined method `stringify_keys'
- (Rails) : NoMethodError: undefined method cost' for BCrypt::Engine:Class
- 《Web开发敏捷之道--应用Rails进行敏捷Web开发,第2版》第6章的错误:undefined method `scaffold' for AdminController:Class
- The method getTextContent() is undefined for the type Node错误
- The method getTextContent() is undefined for the type Node错误
- rake aborted! undefined local variable or method `version_requirements' for #<Rails::GemDependency:0
- undefined method 'before_filter' for Class
- 错误: The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
- The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory 错误的解决
- JSP错误:The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
- 出现错误:The method getCriteriaBuilder() is undefined for the type EntityManager.
- 看好电子书,不看好3G电子书
- Nested_Dolls(偏序集)
- 星期几
- September, 15(R)
- 久违了
- rails错误——undefined method "paginate" for
- 【Java】在J2ME下面开发触摸屏的软件-DEMO
- 打印自己的一段漂亮C程序
- missing ';' before identifier 'NDIS_OID'错误的解决办法
- svg viewbox
- [Game]生化危机5下载PC完整硬盘版
- C#调用PMAC运动控制卡的pcomm32动态链接库的数据类型转换
- 方程证明
- svg dom 的一些例子