Variable: projectile--rails-file-kinds

projectile--rails-file-kinds is a variable defined in projectile.el.

Value

((:model :path "app/models/")
 (:controller :path "app/controllers/" :suffix "_controller.rb" :key-fn projectile--rails-controller-key)
 (:view :path "app/views/" :key-fn projectile--rails-view-key)
 (:helper :path "app/helpers/" :suffix "_helper.rb" :key-fn projectile--rails-helper-key))

Documentation

Reference :file-kinds table for Rails project types.

Relates a resource's model, controller, views and helper by a shared singular key (e.g. app/models/user.rb, app/controllers/users_controller.rb, app/views/users/*, app/helpers/users_helper.rb). Plural-to-singular mapping is naive; see projectile--singularize.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defvar projectile--rails-file-kinds
  '((:model      . (:path "app/models/"))
    (:controller . (:path "app/controllers/"
                    :suffix "_controller.rb"
                    :key-fn projectile--rails-controller-key))
    (:view       . (:path "app/views/"
                    :key-fn projectile--rails-view-key))
    (:helper     . (:path "app/helpers/"
                    :suffix "_helper.rb"
                    :key-fn projectile--rails-helper-key)))
  "Reference `:file-kinds' table for Rails project types.
Relates a resource's model, controller, views and helper by a shared
singular key (e.g. app/models/user.rb, app/controllers/users_controller.rb,
app/views/users/*, app/helpers/users_helper.rb).  Plural-to-singular
mapping is naive; see `projectile--singularize'.")