joncodo
joncodo

Reputation: 2338

Why cant I use ri from terminal

Jonathans-MacBook-Pro-2:pickaxe jod$ ri ActiveRecord::Base#save
Nothing known about ActiveRecord

This should be working but maybe its not installed? I thought it came with ruby. Ruby, Rails and IRB are working fine.

Upvotes: 2

Views: 343

Answers (1)

Chris Cashwell
Chris Cashwell

Reputation: 22899

You have to install the rdoc data. Here's how:

gem install rdoc-data; rdoc-data --install; gem rdoc --all --overwrite

or if you're using RVM:

rvm docs generate-ri

Then you should be able to make your ri query as posted and get the expected output.

Upvotes: 2

Related Questions