Ruby on Rails layer
Table of ContentsClose
1. Description
This layer aims at providing support for the Ruby on Rails framework.
1.1. Features:
- Quick file navigation with with projectile-rails
- Run server
- Run generators
- Rake runner
- Interactive Rails console
2. Install
To use this configuration layer, add it to your ~/.spacemacs
. You will need to
add ruby-on-rails
to the existing dotspacemacs-configuration-layers
list in this
file.
3. Key bindings
3.2. Refactoring
Key binding | Description |
---|---|
SPC m f R x |
extract region into partial |
3.3. RUN commands
Key binding | Description |
---|---|
SPC m f : |
run rake task |
SPC m f c c |
run rails generator |
SPC m f c d |
run rails destroy |
SPC m f i |
start rails console |
SPC m f s r |
reload Rails project |
SPC m f x s |
start rails server |
3.4. Ex-commands
Key binding | Description |
---|---|
:A |
Switch between implementation and tests |