{"id":15606250,"url":"https://github.com/tb/inherited_resources_archetypes","last_synced_at":"2025-04-04T05:45:04.691Z","repository":{"id":137883447,"uuid":"1956919","full_name":"tb/inherited_resources_archetypes","owner":"tb","description":"InheritedResources archetypes modules","archived":false,"fork":false,"pushed_at":"2011-07-16T14:27:00.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T17:17:57.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/tb.png","metadata":{"files":{"readme":"README.rdoc","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":"2011-06-26T19:30:19.000Z","updated_at":"2019-07-08T13:53:54.000Z","dependencies_parsed_at":"2023-03-14T12:45:56.295Z","dependency_job_id":null,"html_url":"https://github.com/tb/inherited_resources_archetypes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Finherited_resources_archetypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Finherited_resources_archetypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Finherited_resources_archetypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Finherited_resources_archetypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tb","download_url":"https://codeload.github.com/tb/inherited_resources_archetypes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128737,"owners_count":20888234,"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":"2024-10-03T04:21:43.941Z","updated_at":"2025-04-04T05:45:04.676Z","avatar_url":"https://github.com/tb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Inherited Resources Archetypes\n\nThis gem is a set of helpers to support archetype-based apprach\nto share controllers and views behaviours with Inherited Resources.\n\n= Installation\n\nAdd do Gemfile\n\n    gem 'archetype', :git =\u003e 'git://github.com/tb/archetype.git'\n    gem 'inherited_resources_archetypes', :git =\u003e 'git://github.com/tb/inherited_resources_archetypes.git'\n\n= Usage\n\nCreate an initializer with following code:\n\n    Archetype::Base.register_archetype :crud do\n      append_view_path Archetype::Resolver::Rails.new(\"archetype/crud\")\n      append_view_path InheritedResourcesArchetypes::Resolver::Engine.new(\"archetype/crud\")\n      inherit_resources\n      include Archetype::Helpers::InheritedResources\n      include Archetype::Helpers::InheritedResources::OnUpdateSuccessRedirectToEdit\n      include Archetype::Helpers::InheritedResources::OnCreateSuccessRedirectToEdit\n    end\n\nNow you can define your controller to use 'crud' archetype like this:\n\n    class UsersController \u003c ApplicationController\n      archetype :crud\n    end\n\n= TODO\n\n * implement 5-7 archetypes \u0026 views\n * document archetypes + ilustrate them with pictures\n * publish some example Rails engines that use archetypes\n\nCopyright (c) 2011 Tomasz Bąk, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftb%2Finherited_resources_archetypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftb%2Finherited_resources_archetypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftb%2Finherited_resources_archetypes/lists"}