Posted on 2008-11-30 06:11
leekiang 阅读(217)
评论(0) 编辑 收藏 所属分类:
ruby
1,db:migrate 时,Table already exist 的解决办法
在已存在的表的create_table的参数中,加上 :force => true,如下:
create_table :products, :force => true do |t|
2,验证
http://www.36sign.com/blog/working/ror-validation-problem.html
http://cvu.javaeye.com/blog/78066
3,分页
will_paginate
下载:http://github.com/mislav/will_paginate/wikis/installation
http://hideto.javaeye.com/blog/108118
http://trace.javaeye.com/blog/156736
http://www.cnblogs.com/ayuan/archive/2008/03/12/1102001.html
http://www.ruby-lang.org.cn/forums/thread-985-1-1.html
http://hi.baidu.com/%D0%C7203/blog/item/30f334ecd0a319d72e2e212c.html