2013年7月23日
摘要: class.new 新建class.find 查询class.destroy 删除变量查询a="hahaha"Product.find(:all,:conditions=>["title like ?","%#{a}%"])Product.find(:all,:conditions=>["title like :title",:title=>"%#{a}%"])Product.find(:all,:conditions=>["title like :title 阅读全文
posted @ 2013-07-23 21:58 诡计的不老歌 阅读(320) 评论(0) 推荐(0) 编辑