`
lemonzc
  • 浏览: 12175 次
  • 性别: Icon_minigender_1
  • 来自: 成都
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
1.notepad++ 简单介绍   notepad++可能大家都不陌生吧,它是一个很强大的编辑器,它的特性是,开放源代码, 支持多语言的,但是它目前只能运行在Windows平台下(缺点,都4.6的版本,还没看到能在其他os上的版本)。大家用过ruby下 ...
大家先看下面代码: class Person < Struct.new(:age) def say_age puts "say age: #{age}" if age != nil end def hello_age puts "hello age: #{age}" if age!=nil end end p = Person.new(30) p.say_age p.hello_age p.age = 20 p.say_age p.hello_age 输出是: say age: 3 ...
搞了几天rails了,太magic了。所以搞不清楚,只知道调用。 今天深入去了解了下 create_table 大家给指点指点 先请看流程: 再看 SchemaStatement 类的create_table()代码 ruby 代码   # ====== Do not add a primary key column   #  create_table(:categories_suppliers, :id => false) do |t|   #    t.column :category_id, :integer   #    t.column  ...
Global site tag (gtag.js) - Google Analytics