2

I can't access rails man page. How can I fix this? Thanks

nuno@Houdini:~/workspace/depot_a$ man rails
man: can't resolve /usr/share/man/man1/rails.1.gz: No such file or directory
No manual entry for rails

edit: But how come some people have a man page and others don't?

nunos
  • 20,479
  • 50
  • 119
  • 154
  • Sorry can't help you on the problem, but there really is nothing helpful in the man page for rails. "rails --help" gives better info on the command and its uses. – Rasmus Nov 01 '11 at 19:58
  • Use `rails [sub_command] -h` to get help, and you need to execute it under the root of a ror project, except `rails new`. – Eric Jul 12 '15 at 05:13

3 Answers3

2

Rails is a ruby gem. Those don't have man pages. Type rails to get a brief list of commands.

Heikki
  • 15,329
  • 2
  • 54
  • 49
1

Rails isn't a traditional operating system package, and usually isn't installed through apt-get or yum, but through the rubygems packaging system that does not install manpages for documentation.

Unixmonkey
  • 18,485
  • 7
  • 55
  • 78
  • 1
    Guess my mac is weird then since I do have a man rails... That it doesn't contain anything useful is a whole other matter.. – Rasmus Nov 01 '11 at 19:55
  • 1
    @Rasmus In the case of OSX, a version of Rails ships with the operating system, so Apple chose to give it a man page for consistency. – Unixmonkey Nov 01 '11 at 20:13
0

For general help use either one of these:

rails -h
rails

For help on a specific command:

rails <cmd> -h

For example: rails new -h

builder-7000
  • 7,131
  • 3
  • 19
  • 43