kch / inheritable_templates

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

This URL has Read+Write access

name age message
file MIT-LICENSE Sun Jul 13 17:57:14 -0700 2008 initial commit for inheritable_templates plugin [Caio Chassot]
file README Sun Jul 13 17:57:14 -0700 2008 initial commit for inheritable_templates plugin [Caio Chassot]
file init.rb Loading commit data...
directory lib/
README
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