ITeye博客

ruby

共 1 篇文章

ExtJS tree in rails

今天发现ExtJS支持Prototype了(不喜欢在rails中混用prototype和yui),赶紧去下载一个,并试验了一下tree组件,感觉还不错,考虑以后就用ExtJS了。 闲话不说了,贴代码 schema.rb ActiveRecord::Schema.define() do create_table "categories", :force => true do |t| t.column "id", :int t.column "parent_id", :int t.column "tree_id", :int t.column "lft", :int t.column "rgt"…

2007-05-03 22:19 · ruby