Skip to content

Latest commit

 

History

History
95 lines (82 loc) · 4.81 KB

File metadata and controls

95 lines (82 loc) · 4.81 KB

Ruby on Rails layer

img/ror.png

Table of Contents

Description

This layer aims at providing support for the Ruby on Rails framework.

Features:

  • Quick file navigation with with projectile-rails
  • Run server
  • Run generators
  • Rake runner
  • Interactive Rails console

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.

Key bindings

Code Navigation

Key bindingDescription
SPC m f f afind localization file
SPC m f f bfind job
SPC m f f cfind controller
SPC m f f efind environment file
SPC m f f ffind feature
SPC m f f hfind helper
SPC m f f ifind initializer
SPC m f f jfind javascript file
SPC m f f lfind library
SPC m f f mfind model
SPC m f f nfind migration
SPC m f f ofind log
SPC m f f pfind spec file
SPC m f f rfind rake task
SPC m f f sfind stylesheet file
SPC m f f Sfind serializer file
SPC m f f tfind test
SPC m f f ufind fixture
SPC m f f vfind view
SPC m f f wfind webpack config
SPC m f f yfind layout
SPC m f f @find mailer
SPC m f g cgo to current controller
SPC m f g dgo to DB schema
SPC m f g ego to DB seeds
SPC m f g hgo to current helper
SPC m f g jgo to current javascript
SPC m f g ggo to Gemfile
SPC m f g mgo to current model
SPC m f g ngo to current migration
SPC m f g pgo to current spec
SPC m f g rgo to routes
SPC m f g sgo to current stylesheet
SPC m f g tgo to current test
SPC m f g ugo to current fixture
SPC m f g vgo to current view
SPC m f g zgo to spec helper
SPC m f g .go to file at point (faster but less powerful than SPC m g g)

Refactoring

Key bindingDescription
SPC m f R xextract region into partial

RUN commands

Key bindingDescription
SPC m f :run rake task
SPC m f c crun rails generator
SPC m f c drun rails destroy
SPC m f istart rails console
SPC m f s rreload Rails project
SPC m f x sstart rails server

Ex-commands

Key bindingDescription
:ASwitch between implementation and tests