public
Description: Allows a "default" template to be used for any given action in a Rails app
Homepage:
Clone URL: git://github.com/jonleighton/default_templates.git
jonleighton (author)
Wed Sep 03 04:31:04 -0700 2008
commit  ecd0caf16065c1f2c198c0fe78e914fd5e2a7e8f
tree    cc032f744fd90f737192369d65cfc6d949ca6935
name age message
file MIT-LICENSE Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
file README.textile Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
file Rakefile Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
file init.rb Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
file install.rb Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
directory lib/ Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
directory spec/ Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
directory tasks/ Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
file uninstall.rb Wed Sep 03 04:31:04 -0700 2008 Initial import [jonleighton]
README.textile

Default Templates

This is a Rails plugin which allows you to specify a default template for a specific
action. For example, if we are rendering the “new” action for a “tasks” controller,
the plugin will look for app/views/tasks/new. If that template does not exist, it will
look for app/views/defaults/new instead.

(My new and edit templates just contain render :partial => "form", so this plugin
removes some clutter for me.)