{"id":23869465,"url":"https://github.com/fredwu/inherited_resources_views","last_synced_at":"2025-06-17T22:34:24.678Z","repository":{"id":56877651,"uuid":"818814","full_name":"fredwu/inherited_resources_views","owner":"fredwu","description":"Share and DRY up views between resources. Use with Inherited Resources.","archived":false,"fork":false,"pushed_at":"2011-05-20T09:19:59.000Z","size":153,"stargazers_count":60,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T08:13:57.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://fredwu.me/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredwu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-05T09:01:26.000Z","updated_at":"2023-02-21T06:53:52.000Z","dependencies_parsed_at":"2022-08-20T23:10:33.803Z","dependency_job_id":null,"html_url":"https://github.com/fredwu/inherited_resources_views","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/fredwu/inherited_resources_views","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Finherited_resources_views","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Finherited_resources_views/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Finherited_resources_views/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Finherited_resources_views/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredwu","download_url":"https://codeload.github.com/fredwu/inherited_resources_views/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwu%2Finherited_resources_views/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260450774,"owners_count":23011144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-03T12:35:05.789Z","updated_at":"2025-06-17T22:34:19.664Z","avatar_url":"https://github.com/fredwu.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](http://stillmaintained.com/fredwu/inherited_resources_views.png)](http://stillmaintained.com/fredwu/inherited_resources_views)\n\nSince Rails 3.1 has view inheritance built in, it effectively renders this gem useless. The amount of time and effort to get all the issues sorted and tests added are too significant to warrant any more releases. If anyone is interested in taking over the project, please let me know! :)\n\n# Inherited Resources Views\n\n## Introduction\n\nUsing [Inherited Resources](http://github.com/josevalim/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!\n\nBrought to you by [Envato](http://envato.com) and [Wuit](http://wuit.com).\n\n## Difference to Other Seemly Similar Projects\n\nIf you are confused about the difference to some other similarly named projects, please read on.\n\n### Difference to Inherit Views\n\n[Inherit Views](http://github.com/ianwhite/inherit_views) adds the ability to render views from parent controllers. It does not share views between different resources.\n\n### Difference to Inherited Views\n\n[Inherited Views](http://github.com/gregbell/inherited_views) tries to solve the same problem we're solving, but from a slightly different angle. It is more complex, requires [Formtastic](http://github.com/justinfrench/formtastic) and [WillPaginate](http://github.com/mislav/will_paginate), 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](http://github.com/josevalim/inherited_resources)), and it supports both erb and [haml](http://github.com/nex3/haml) templates.\n\n## Dependencies\n\n* [Inherited Resources](http://github.com/josevalim/inherited_resources)\n\n## Limitations\n\nWhen using Rails 2, the generator only generates `Erb` templates, whereas using Rails 3 it generates `Erb` or `Haml` templates accordingly.\n\n## Installation\n\nAs a Rails plugin:\n\n    # rails 3\n    rails plugin install git://github.com/fredwu/inherited_resources_views.git\n\n    # rails 2\n    script/plugin install git://github.com/fredwu/inherited_resources_views.git\n\nAs a gem:\n\n    gem install inherited_resources_views\n\n## Usage\n\nIt is *extremely* simple to use Inherited Resources Views. The only step you need to do after the installation is to customise the default views:\n\n    # rails 3\n    rails generate inherited_resources_views\n\n    # rails 2\n    script/generate inherited_resources_views\n\n    # Please remember to restart your server!\n\nThis will generate a set of views in your `app/views/inherited_resources` folder. Edit away!\n\n## Author\n\nCopyright (c) 2010 Fred Wu (\u003chttp://fredwu.me\u003e), released under the MIT license\n\n* Envato - \u003chttp://envato.com\u003e\n* Wuit - \u003chttp://wuit.com\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwu%2Finherited_resources_views","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredwu%2Finherited_resources_views","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwu%2Finherited_resources_views/lists"}