Rails 2.0.2 is out, this version fixed the rake rails:freeze:gem problem with RubyGens 0.9.5, this version is a drop-in replacement for Rails 2.0. From the release announcement.
Rails 2.0.2 contains a bunch of smaller fixes to various bugs, no show-stopping action, just further polish. But it also contains a few new defaults. The major change is mysql is no longer the default database. SQLite3 is the new default database, SQLite3 is shipped with Leopard. Use
$ rails -d mysql dummy_app
to set the default database to mysql.
Rails 2.0.1 已經正式推出了,而我也把我的 development machine update 到 2.0.1,但假如現在要 create 一個新的 Rails project,但又要用回 Rails 的舊版本如 1.2.6,應該怎麼辦呢?
做法很簡單,只要 create 新的 project 時指定版本即可
$ rails _1.2.6_ dummy_app
Update 10/12/2007 : It’s fixed in edge changeset 8336, it make rails:freeze:gems work with RubyGems 0.9.5. You can update to edge or follow the change set to update your frameworks.rake
When I try to create my own Rails 2.0 API documentation for reference. I encounter the cannot freeze gems problem. After a little googling, I’ve found the temporary fix. Until there is a solution I’ll stick with this fix.
1. create a dummy_app
rails dummy_app
2. edit /Library/Ruby/Gems/1.8/gems/rails-2.0.1/lib/tasks/framework.rake, add the following below line 6
[original]
line 6: require ‘rubygems’
[Fix]
line 6: require ‘rubygems’
line 7: require ‘rubygems/gem_runner’
3. delete the empty directory under vendor directory
4. rake rails:freeze:gems
5. echo >vendor/rails/activesupport/README
6. rake doc:rails
7. There is no step 7.
經過差不多一年的 Development effort,Rails 2.0 終於正式推出,Rails 2.0比上一版本 Rails 1.2改善了很多,例如 RESTful 的語法,Action Pack: Multiple View,Active Record 速度上的改進,更簡易的 Active Record: Migration,ActionController::HttpAuthentication 等。
詳情可以到 Rails 的 blog 看看。相信很多的 Rails 書也要跟著改版了,我想 AWDR 也很快會出第三版。
Javascript - The Definitive Guide 5th Ed.
CSS - The Definitive Guide 3rd Ed
RESTful Web Services
Ajax on Rails
Rails Cookbook
Ruby Cookbook