public
Description: rails plugin: searches the entire controller inheritance chain for templates to render
Homepage:
Clone URL: git://github.com/kch/inheritable_templates.git
100644 26 lines (14 sloc) 0.595 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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