public
Description: rails plugin that enables inheritance of views along a controller class heirachy
Homepage: http://ianwhite.github.com/inherit_views
Clone URL: git://github.com/ianwhite/inherit_views.git
ianwhite (author)
Sun Sep 21 05:33:24 -0700 2008
commit  679c697e5fbf1c7596c9278625b8b155c5d25904
tree    1c459016f70112a27435e39307e216c8b5f5cc05
parent  966d6257b7d624ee0acba76d08f3f6bb01adc56a
name age message
file .gitignore Loading commit data...
file CHANGELOG
file MIT-LICENSE Fri Feb 06 01:09:38 -0800 2009 Simplify Rakefile, README, etc [ianwhite]
file README
file README.rdoc
file Rakefile
file SPECDOC
file TODO Fri Feb 06 01:09:38 -0800 2009 Simplify Rakefile, README, etc [ianwhite]
file garlic_example.rb
file init.rb
directory lib/
directory spec/
README.rdoc
http://plugins.ardes.com > inherit_views

= Status

inherit views on edge has slimmed down a bit (64 LOC).  The API is the same except that, for the moment, render_parent 
is out.

inherit_views is available for rails 2.0-stable and 2.1-stable.  To get this version checkout the rails-2.0-2.1 branch

  git clone git://github.com/ianhwite/inherit_views rails-2.0-2.1

= inherit_views

This plugin allows your controllers to inherit their views from parent controllers.  The default behaviour is to inherit 
along the ancestor path of the controller, but you can also specify custom inherit view paths to search.

NOTE: this plugin is not aimed at having multiple view paths for your controllers, which is addressed with the 
view_paths addition to ActionController::Base for rails 2.0.  Rather, within these view paths, you can inherit views 
from other controller paths.

Example:

  class ApplicationController < ActionController::Base
    inherit_views
  end

  class FooController < ApplicationController
    # will look for views in 'views/foo', then 'views/application'
  end

  class BarController < FooController
    # will look for views in 'views/bar', then 'views/foo', then 'view/application'
  end
  
See Ardes::InheritViews for more details

=== Specs and Coverage
* {SPECDOC}[link:files/SPECDOC.html] lists the specifications
* {RSpec Report}[link:rspec_report.html] is a report of spec pass/fails
* {RCov Report}[link:coverage/index.html] is the rcov report

=== Testing

RSpec is used for testing, so the tests are in <tt>spec/</tt> rather than
<tt>test/</tt> Do rake --tasks for more details.