2010年6月7日
摘要: 使用Aptana RadRails新建一个ruby project,按照书上的代码抄上去后require 'rubygems'require 'mysql'def with_db dbh=Mysql.real_connect('localhost','root','root','test',3306)begin yield dbhensuredbh.closeendendwith_db do |d... 阅读全文
posted @ 2010-06-07 19:55 青竹园主 阅读(412) 评论(0) 推荐(0) 编辑