Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Wrong examples for plugin installation and generators in usage documentation

#3870

The example section in the usage documentation contains wrong or obsolete commands:

rails plugin
shows
rails install continuous_builder
instead of
rails plugin install continuous_builder
All generators:
rails generate <generator>
shows
./script/generate <generator> ...
instead of
rails generate <generator> ...

Reported by RomD · February 5th, 2010 @ 11:00 PM

State: resolved
Milestone: 3.0.2
Assigned to: Carl Lerche Carl Lerche
Importance: Low

Activity

  1. José Valim
    José Valim

    Could you please provide a patch? Thanks!

    February 6th, 2010 @ 10:07 AM

  2. José Valim
  3. RomD
    RomD

    Ok, this patch turned out pretty big, because there are a lot of files with the old invocations.
    It's my first patch, so I hope I did everything right and it's of any use.
    I grepped through all rails files and manually edited the occurrences.

    February 6th, 2010 @ 04:38 PM

  4. RomD
  5. Carl Lerche
    Carl Lerche
    • State changed from new to resolved

    thanks for the patch!! :) Applied to master.

    February 6th, 2010 @ 05:56 PM

  6. RomD
    RomD

    According to fxn's comment on github ( http://github.com/rails/rails/commit/f44a0b1d524064a2e919cd10d3013d... ), the fix in the release notes file was wrong.
    I wasn't sure whether the right-hand side was an example of the old way or a mistake by the author.
    I replaced '=>' with 'instead of' in this patch, to make it more clear what's really meant.

    February 7th, 2010 @ 04:06 AM

  7. Xavier Noria
    Xavier Noria

    Looks good. I'd even remove the leading ./ in those comments indeed, since it was rarely used.

    February 7th, 2010 @ 09:37 AM

  8. José Valim
    José Valim
    • Assigned user set to Carl Lerche

    February 7th, 2010 @ 12:51 PM

  9. José Valim
    José Valim

    Just commited the other patch as well.

    February 7th, 2010 @ 12:51 PM

  10. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM