Skip to content

rails plugin: searches the entire controller inheritance chain for templates to render

License

Notifications You must be signed in to change notification settings

kch/inheritable_templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

InheritableTemplates
====================

Looks for templates and partials to render in the entire controller inheritance chain.

Say you have:

  DocumentsController < ApplicationController
  ArticlesController < DocumentsController

and a view file at:

  app/views/documents/list.html.erb

If you request articles/list, and app/views/articles/list.html.erb doesn't exist, this
plugin will render app/views/documents/list.html.erb for you.


## Usage

Just drop it in your plugins folder, everything happens automatically.


--
Copyright (c) 2008 Caio Chassot, released under the MIT license

About

rails plugin: searches the entire controller inheritance chain for templates to render

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages