Using OS X 10.8.4
and ruby 1.9.3p194
$ gem install rails
Successfully installed rails-4.0.0
1 gem installed
Installing ri documentation for rails-4.0.0...
Installing RDoc documentation for rails-4.0.0...
ERROR: While generating documentation for rails-4.0.0
... MESSAGE: error generating /Users/michaelirey/.rvm/gems/ruby-1.9.3-p194/doc/rails-4.0.0/rdoc/guides/Rakefile.html: Error while evaluating /Users/michaelirey/.rvm/gems/ruby-1.9.3-p194/gems/rdoc-3.12.2/lib/rdoc/generator/template/darkfish/page.rhtml: undefined method `chomp' for nil:NilClass (RDoc::Error)
... RDOC args: --op /Users/michaelirey/.rvm/gems/ruby-1.9.3-p194/doc/rails-4.0.0/rdoc lib --title rails-4.0.0 Documentation --quiet
Looks like this is just for the documentation, but it would still be nice to get things installed without error.
Try updating rdoc, it may just be old.
gem update rdoc
Can't tell you where that error comes from, but considering how useless installing ri and rdoc actually is, I would just do:
gem install rails --no-ri --no-rdoc
You'll also get a much faster install by skipping the docs. In fact, this is what the official release page recommends: http://weblog.rubyonrails.org/2013/6/25/Rails-4-0-final/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With