10 | `:A` | alternate file (test) |
11 | `:R` | related file (controller/view) |
17 | **Model** | test/models/ | db/schema.rb |
18 | **Controller method** | test/controllers/ | app/views/ |
19 | **View template** | test/views/ | app/controllers |
24 Type `:Rabbrev` for a full list.
26 | Abbrev | Expansion |
28 | `AC::` | ActionController |
29 | `AR::` | ActiveRecord |
30 | `AV::` | ActionView |
33 | `logd(` | logger.debug |
34 | `logi(` | logger.info |
40 | Abbrev | Expansion |
42 | `bt(` | `belongs_to` |
43 | `hm(` | `has_many` |
45 | `habtm(` | `has_and_belongs_to_many` |
50 | Abbrev | Expansion |
53 | `re(` | redirect_to |
54 | `rp(` | render partial: |
55 | `rst(` | respond_to |
60 | Abbrev | Expansion |
62 | `dotiw` | `distance_of_time_in_words` |
63 | `taiw` | `time_ago_in_words` |
70 # from view => app/views/home/_foo_partial.haml
71 :Rextract home/foo_partial
73 # from model => app/models/concerns/foo_concern.rb
82 :Econtroller <file> # app/controllers/*_controller.rb
83 :Ehelper # app/helpers/*_helper.rb
84 :Emodel <file> # app/models/*.rb
85 :Ejob <file> # app/jobs/*_job.rb
86 :Emailer <file> # app/mailers/*.rb
90 :Emigration <file> # db/migrations/*.rb
91 :Eschema # db/schema.rb
95 :Elib <file> # lib/*.rb
97 :Etask <file> # lib/tasks/*.rake
113 # test/{unit,models,helpers}/*_test.rb
114 # spec/{unit,models,helpers}/*_spec.rb
117 # test/{functional,controllers,mailers}/*_test.rb
118 # spec/{functional,controllers,mailers}/*_spec.rb
121 # test/integration/*_test.rb
122 # spec/{features,requests,integration}/*_spec.rb
130 :Einitializer <file> # config/initializers/*.rb
131 :Elocale # config/locales/*.yml
132 :Eenvironment # application.rb
133 :Eenvironment development # config/environments/*.rb
137 * [vim-rails](https://github.com/tpope/vim-rails)