2021-05-04 01:59:31 +00:00
|
|
|
# Ruby on Rails
|
2012-06-14 23:16:17 +00:00
|
|
|
|
|
|
|
Defines [Ruby on Rails][1] aliases.
|
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Aliases
|
2012-06-14 23:16:17 +00:00
|
|
|
|
2023-05-05 03:21:48 +00:00
|
|
|
Aliases are enabled by default. To disable them, add the following to
|
|
|
|
_`${ZDOTDIR:-$HOME}/.zpreztorc`_.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
zstyle ':prezto:module:rails:alias' skip 'yes'
|
|
|
|
```
|
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
- `ror` is short for `rails`.
|
|
|
|
- `rorc` starts the Rails console.
|
|
|
|
- `rordc` starts the Rails console connected to the database.
|
|
|
|
- `rordm` migrates the database.
|
|
|
|
- `rordM` migrates the database and recreates the test database.
|
|
|
|
- `rordr` rolls the database schema back to the previous version.
|
|
|
|
- `rorg` generates new code.
|
|
|
|
- `rorl` displays the log.
|
|
|
|
- `rorlc` truncates logs to zero bytes.
|
|
|
|
- `rorp` installs a plugin.
|
|
|
|
- `rorr` runs code in the application environment.
|
|
|
|
- `rors` starts the Rails server.
|
|
|
|
- `rorsd` starts the Rails server with the debugger.
|
|
|
|
- `rorx` destroys newly generated code.
|
2012-08-15 01:13:07 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
## Authors
|
2012-06-14 23:16:17 +00:00
|
|
|
|
2021-05-05 17:59:01 +00:00
|
|
|
_The authors of this module should be contacted via the [issue tracker][2]._
|
2012-06-14 23:16:17 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
- [Robby Russell](https://github.com/robbyrussell)
|
|
|
|
- [Jake Bell](https://github.com/theunraveler)
|
|
|
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
2012-06-14 23:16:17 +00:00
|
|
|
|
2021-05-04 01:59:31 +00:00
|
|
|
[1]: https://rubyonrails.org
|
2012-09-03 20:08:39 +00:00
|
|
|
[2]: https://github.com/sorin-ionescu/prezto/issues
|