Rails 刚刚发布了 3.0.5 版本。
修复的bug包括:
- Fix when gzip returns a UTF-8 string on Ruby 1.9, when it is actually binary. commit
- Active Record limit values will not escape Arel SQL Literal nodes. commit
- Relation#where calls will always produce AND statements regardless of how conditions hashes behaves (reverting 00693209ecc).
- Observer callbacks will only be executed once when using STI classes in ActiveRecord. commit
新增加的废弃方法:
- Deprecate Relation#& alias for Relation#merge. commit
- Deprecated support for interpolated association conditions with the :conditions => ‘foo = #{bar}’ syntax, and added the new interpolation syntax which is :conditions => proc { “foo = #{bar}” }. commit
这里并不是 3.0.5 版本的全部,完整的更改记录请看 here
ruby 有 sinatra 也很轻巧
引用来自“木木兮”的评论
感觉还是用python比ruby爽啊,webpy也是相当的轻巧。