No commit activity in last 3 years
No release in over 3 years
Using Inherited Resources is an excellent way to reduce the amount of repetition in your controllers. But what about views? A lot of times resources share the same views, so why not DRY 'em up using Inherited Resources Views!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Inherited Resources Views

Introduction

Using Inherited Resources is an excellent way to reduce the amount of repetition in your controllers. But what about views? A lot of times resources share the same views, so why not DRY 'em up using Inherited Resources Views!

Difference to Other Seemly Similar Projects

If you are confused about the difference to some other similarly named projects, please read on.

Difference to Inherit Views

Inherit Views adds the ability to render views from parent controllers. It does not share views between different resources.

Difference to Inherited Views

Inherited Views tries to solve the same problem we're solving, but from a slightly different angle. It is more complex, requires Formtastic and WillPaginate, and it only generates erb templates. Inherited Resources Views on the other hand, is extremely simple, is library-agnostic (it only depends on Inherited Resources), and it supports both erb and haml templates.

Dependencies

Installation

Add it to your Gemfile:

gem "jweslley-inherited_resources_views"

Install using bundle:

bundle install

Usage

It is extremely simple to use Inherited Resources Views. The only step you need to do after the installation is to customise the default views:

rails generate inherited_resources_views

This will generate a set of views in your app/views/inherited_resources folder. Edit away!

Note: Please remember to restart your server!

Bugs and Feedback

If you discover any bugs or have some idea, feel free to create an issue on GitHub:

https://github.com/jweslley/inherited_resources_views/issues

Authors

License

Copyright (c) 2011 Jonhnny Weslley (http://jonhnnyweslley.net), released under the MIT license.

See the MIT-LICENSE file provided with the source distribution for full details.