mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
technical correction in guides under 'Generating an engine'
`bin/rails` would not exist outside of a rails project
This commit is contained in:
parent
3a9b3ba082
commit
21ba9b11f9
2 changed files with 4 additions and 4 deletions
|
@ -74,13 +74,13 @@ options as appropriate to the need. For the "blorgh" example, you will need to
|
||||||
create a "mountable" engine, running this command in a terminal:
|
create a "mountable" engine, running this command in a terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ bin/rails plugin new blorgh --mountable
|
$ rails plugin new blorgh --mountable
|
||||||
```
|
```
|
||||||
|
|
||||||
The full list of options for the plugin generator may be seen by typing:
|
The full list of options for the plugin generator may be seen by typing:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ bin/rails plugin --help
|
$ rails plugin --help
|
||||||
```
|
```
|
||||||
|
|
||||||
The `--mountable` option tells the generator that you want to create a
|
The `--mountable` option tells the generator that you want to create a
|
||||||
|
|
|
@ -39,13 +39,13 @@ to run integration tests using a dummy Rails application. Create your
|
||||||
plugin with the command:
|
plugin with the command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ bin/rails plugin new yaffle
|
$ rails plugin new yaffle
|
||||||
```
|
```
|
||||||
|
|
||||||
See usage and options by asking for help:
|
See usage and options by asking for help:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ bin/rails plugin new --help
|
$ rails plugin new --help
|
||||||
```
|
```
|
||||||
|
|
||||||
Testing Your Newly Generated Plugin
|
Testing Your Newly Generated Plugin
|
||||||
|
|
Loading…
Reference in a new issue