Welcome to my old blog on my new AndoVPS, on digitalocean.com.
... railties (4.0.0.beta1) actionpack (= 4.0.0.beta1) activesupport (= 4.0.0.beta1) rake (>= 0.8.7) rdoc (~> 3.4) thor (>= 0.17.0, < 2.0) ...
So this fact makes ri not work in a Ruby 2 + Rails 4 project at the moment… I suspect this could be the reason why docs were not included by default by RVM. Or possibly the other way around, due to the fact that docs are never included by default (so seldom used), Rails developers didn’t see there was a problem.
The easiest temporary fix is to use the full path to (the good) ri:
$ /Users/.../.rvm/rubies/ruby-2.0.0-p0/bin/ri String
Another temporary fix (I’m currently using this one) is to
- manually edit the Gemfile.lock such that above line reads instead
rdoc (>= 3.4)
$ bundle update rdoc
After that, you can again execute ri without specifying its path.
$ ri String
Reading the 4th edition of the Agile Web Development with Rails book by Sam Ruby.
With Ruby, however, much of this support just isn’t necessary. Editors such as TextMate and BBEdit give you 90 percent of what you’d get from an IDE but are far lighter weight. Just about the only useful IDE facility that’s missing is refactoring support.
Hm, that’s unfortunate. One of the most useful IDE facility that’s missing is debugging support !! When you have a debugger integrated into the editor, you are not anymore thinking about debugging because it’s just another editing task.
You look at a piece of code, put a breakpoint, hit debug, and review the application state at that point in time, step by step.