Use Inherited Resources Views to DRY Your Views
Sometimes just DRY the controllers is not enough, a lot of the resources often share the same views, wouldn’t it be nice to have view files DRY’ed too? You can! Inherited Resources Views is an extremely easy to use plugin to DRY the views associated with your inherited resources controllers. It is library-agnostic (it only depends on Inherited Resources) and it supports generating both erb and haml templates. Source code available at: http://github.com/fredwu/inherited_resources_views
Post a comment