In gem server "rdoc not installed" but have rdoc in terminal - ruby-on-rails

When I gem server and go to the page, I notice there wasn't a link to the RDoc, and when I move to there a pop out says RDoc is not installed.
But when I type rdoc --help in terminal, there is a reply. How to get to the rdoc, because I need to read omniauth rdoc?

I just tried using Rails 3.0.1 and Ruby 1.9.2 on a Mac and it worked... no rdocs content for omniauth itself but there are docs for oa-basic, oa-core, oa-enterprise, oa-oauth, oa-openid
You can consider uninstalling omni-auth and reinstalling it
gem uninstall omniauth
gem install omniauth
and see if the rdoc get built. Also, if you use RVM on Mac or Linux, you can create a new gemset and then install omniauth again and try.

Solve it by using sudo gem rdoc omniauth ... but nothing inside

Related

Does rails and other gems install documentation anywhere when you install them?

And where can I find it? I'm running OSX.
In addition I have to do a lot of work offline while travelling so if anyone can offer any tips for downloadable documentation please let me know.
If you have installed your gems the "normal" way, they install rdoc documentation.
Just run gem server in your console and go to http://localhost:8808 in your browser. There you'll find all available Gems and the RDoc documentation
http://railsapi.com provides you to download offline documentation for:
Rails 2.2.2, 2.3.8, 3.0.8
Ruby 1.8, 1.9.2
Authlogic
AWS-S3
EventMachine
Haml
Hpricot
Nokogiri
Rack
Rspec
Sinatra
The downloadable file has wonderful jQuery search functionality, so it's pretty useful
#klaustopher's answer didn't work for me directly, so here is how I got this to work for the rspec-expectations gem:
Install gem documentation by either
using the --rdoc flag: gem install --rdoc rspec-expectations
or by installing rdocs for all gems: gem rdoc --all
Run rdoc server.
gem server
Go to http://localhost:8808 in my browser.
Caveat: at a first glance the rdoc for rspec-expectations is pretty useless. I bet there is a better way to do this.

Rails 3.0.3, rails_admin gem, generator not found

I am getting error installing Rails_admin with rails 3.0.3. Command line log shown below -
C:\rorprj\app>gem uninstall rails_admin
Successfully uninstalled rails_admin-0.0.0
C:\rorprj\app>gem install rails_admin
Temporarily enhancing PATH to include DevKit...
Successfully installed rails_admin-0.0.0 1 gem installed
Installing ri documentation for rails_admin-0.0.0...
Installing RDoc documentation for rails_admin-0.0.0...
C:\rorprj\app>rails generate rails_admin:install_admin
**Could not find generator rails_admin:install_admin.**
C:\rorprj\app>rails -v
Rails 3.0.3
Anything I can do fix this?
Try this
gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'
Sometimes the actual github repo has an different version. I have it running on 3.0.3 and that is what is in my gemfile.
If you call
rails generate rails_admin
the 'help' returns
*Hello, to install rails_admin into your app you need to ru*n:
rake rails_admin:install
And this works. I just encountered the same problem as you. (Keep in mind that you need to add the gem to the gemfile too)
Did you add this gem to your Gemfile? This file is responsible for loading all gems that your application depends on, and if this gem isn't specified in it then it will not be loaded.

Gem installed rails 2.3.8, but not generate rdoc, how to fix?

I use gem install rails -v=2.3.8 to install rails, and it says rdoc and ri has been generated.
But when I gem server, I can't open the rails doc in browser, it says doc_root/rails-2.3.8/rdoc/index.html not found
I looked into /usr/local/lib/ruby/gems/1.8/doc/rails-2.3.8/rdoc, found it is empty.
How to fix it? How to generate the rdoc by gem?
Maybe re-generating might help: sudo gem rdoc --all
Can you try this DIR "/usr/lib/ruby/gems/1.8/doc/rails-2.3.5/"

Heroku db:push doesnt work. Says it needs taps installed even after taps has been installed

I can't seem to get heroku to db:push, even though I have installed taps. It doesnt seem to believe me. I also checked and found a folder here: /Library/Ruby/Gems/1.8/gems/taps-0.2.23/
UM4345s-MacBook-Pro:photosite $ sudo gem install taps
Password:
Successfully installed rack-1.1.0
Successfully installed sinatra-0.9.2
Successfully installed thor-0.9.9
Successfully installed
rest-client-1.2.0 Successfully
installed sequel-3.0.0 Successfully
installed taps-0.2.23 6 gems installed
Installing ri documentation for
rack-1.1.0... Installing ri
documentation for sinatra-0.9.2...
Installing ri documentation for
thor-0.9.9... Installing ri
documentation for rest-client-1.2.0...
Installing ri documentation for
sequel-3.0.0... Installing ri
documentation for taps-0.2.23...
Installing RDoc documentation for
rack-1.1.0... Installing RDoc
documentation for sinatra-0.9.2...
Installing RDoc documentation for
thor-0.9.9... Installing RDoc
documentation for rest-client-1.2.0...
Installing RDoc documentation for
sequel-3.0.0... Installing RDoc
documentation for taps-0.2.23...
UM4345s-MacBook-Pro:photosite $heroku db:push
Install the Taps gem
to use db commands. On most systems
this will be: sudo gem install taps
UM4345s-MacBook-Pro:photosite $ sudo gem install taps
Password: Successfully installed
taps-0.2.23 1 gem installed Installing
ri documentation for taps-0.2.23...
Installing RDoc documentation for
taps-0.2.23...
UM4345s-MacBook-Pro:photosite$ $heroku db:push
Install the Taps gem
to use db commands. On most systems
this will be: sudo gem install taps
This can be fixed by upgrading your heroku gem with
gem update heroku
You might need a sudo as well depending on your environment.
Is the 'gem' for the current user the same as the run that's run from sudo? I've had a problem with that when using REE or ruby installed from macports. Quick check to compare:
which gem
sudo which gem
gem list | grep tap
sudo gem list | grep tap
It might be worth a try to purge both the taps and heroku gem and reinstall them.
Are you using RVM? If so it's easy to be using the wrong gemset and not know it.

Gem Server and Rails RDoc Not Found

I would like to read Rails documentation locally though gem server.
I go to http://localhost:8808/ and Rails 2.3.3 gem is in the list of the gems installed, but when I click [rdoc] I get:
`/doc_root/rails-2.3.3/rdoc/index.html' not found.
I tried to uninstall and reinstall Rails but I got no effect.
All other gems work properly, why I can't see Rails documentation?
Rails itself has no documentation while you can read rdocs about actionmailer, actionpack, activerecord, activeresource or activesupport.
You can try to explicitly generate ri and rdoc during gem installation. The command is as follows:
$ sudo gem install rails --rdoc --ri
Cheers
http://railsapi.com/
Just download this to your gem docs dir.

Resources