暂无签名
鏆傛棤浠嬬粛
全部博文(526)
发布时间:2006-11-25 19:13:32
MySQL5.1新特性翻译系列 - 通过分区(Partition)提升MySQL性能http://www.phpv.net/article.php/1514随机选择记录问题(比如答题系统需要随机从题库抽取题目)http://www.phpx.com/viewarticle.php?id=102057[@more@]......【阅读全文】
发布时间:2006-11-21 11:33:02
UJS Rails Plugin不知道这个插件是否会对RJS有影响,它会不会也像simply_restful插件一样,被 rails 吸纳进来呢?http://www.ujs4rails.com/resources/quickstart-guide[@more@] ......【阅读全文】
发布时间:2006-11-17 19:48:40
用 has_many :through 实现自引用连接二 [@more@]This example is for modeling digraphs. create_table "nodes" do |t| t.column "name", :string t.column "capacity", :integer end create_table "edges" do |t| t.column "source_id", :integer, :null => false t.column "sink_id", :integer, :null => false t.column "flow", :integer end class Edge < ActiveRecord::Base belongs_to ......【阅读全文】
发布时间:2006-11-17 19:02:43
用 has_many :through 实现自引用连接 [@more@]想在 people 表内找出是朋友的 person。 <code> # people 表 create_table :people do |t| t.column :name, :string end # 连接模型 authorized 用于表示其是否是我的朋友。 # 关联的朋友表 friendships create_table :friendships do |t| t.column :person_id, :integer t.column :friend_id, :integer t.column :authorized, :boolean, :default => false end class Friendship < ActiveRecord::B......【阅读全文】