![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rails
iteye_4919
这个作者很懒,什么都没留下…
展开
-
use Rails.root instead RAILS_ROOT in rake task for Rails 3
I was getting this error running the rake db:data:load task: uninitialized constant Rails::DeprecatedConstant::Rails, reading the rails 3 changelog I get realized about thisRailties now de...原创 2011-09-21 22:42:32 · 140 阅读 · 0 评论 -
undefined method ‘paginate’ for Array (will_paginate 3.0)
If you ever find this problem (Github Issue) you should know that WillPaginate 3.0 isn’t backwards compatible.This also is tightly coupled with the new Active Record implementation (Now it retur...原创 2011-09-23 16:24:59 · 99 阅读 · 0 评论 -
讨厌的Devket安装
http://wuhuizhong.iteye.com/blog/875493原创 2011-10-08 14:46:41 · 90 阅读 · 0 评论 -
Rails 3+之后支持的validate整合写法
在 Rails3 之後支援以下的整合寫法:validates :name, :presence => true, :length => {:minimum => 1, :maximum => 254} validates :email, :presence => true, ...原创 2011-10-19 14:13:42 · 60 阅读 · 0 评论 -
rails3.1-invalid multibyte char (US-ASCII)
# Load the rails application# encoding: utf-8require File.expand_path('../application', __FILE__)# Initialize the rails applicationReview::Application.initialize!WillPaginate::ViewHelpers.p...原创 2011-10-28 22:52:17 · 171 阅读 · 0 评论