Every repository with this icon (
Every repository with this icon (
tree af87d43a023b9b6e6a7a3650b66dc7e14391eaec
parent 4ab74c4f152b85c6f8093cb5ae9e89009b1ddc6a
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
CHANGELOG | ||
| |
MIT-LICENSE | Fri Feb 06 01:09:38 -0800 2009 | |
| |
README | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
SPECDOC | ||
| |
garlic_example.rb | ||
| |
init.rb | Thu Feb 08 04:57:36 -0800 2007 | |
| |
lib/ | ||
| |
spec/ |
plugins.ardes.com > inherit_views
Status
inherit_views works on 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 is broken on edge at the moment. Edge’s view internals have changed a lot, and so I’m working on a rewrite for edge. This is found in the master branch
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 lists the specifications
- RSpec Report is a report of spec pass/fails
- RCov Report is the rcov report
Testing
RSpec is used for testing, so the tests are in spec/ rather than test/ Do rake —tasks for more details.








