public
Description: rails plugin: searches the entire controller inheritance chain for templates to render
Homepage:
Clone URL: git://github.com/kch/inheritable_templates.git
name age message
file MIT-LICENSE Sun Jul 13 17:57:14 -0700 2008 initial commit for inheritable_templates plugin [kch]
file README Sun Jul 13 17:57:14 -0700 2008 initial commit for inheritable_templates plugin [kch]
file init.rb Sun Jul 13 17:57:49 -0700 2008 make compatible with rails 2.1 edge at commit 7... [kch]
directory lib/ Mon Feb 09 03:59:02 -0800 2009 make compatible with rails 2.3 edge at commit 8... [kch]
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