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.