{"id":30107065,"url":"https://github.com/benignware/scaffold_assoc","last_synced_at":"2025-08-10T01:33:02.471Z","repository":{"id":14244925,"uuid":"16952325","full_name":"benignware/scaffold_assoc","owner":"benignware","description":"Scaffold nested resources with Rails","archived":false,"fork":false,"pushed_at":"2015-04-08T18:14:49.000Z","size":292,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-08-12T18:37:46.783Z","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/benignware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-18T14:57:06.000Z","updated_at":"2023-08-12T18:37:46.784Z","dependencies_parsed_at":"2022-09-05T19:51:30.701Z","dependency_job_id":null,"html_url":"https://github.com/benignware/scaffold_assoc","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"purl":"pkg:github/benignware/scaffold_assoc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fscaffold_assoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fscaffold_assoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fscaffold_assoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fscaffold_assoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benignware","download_url":"https://codeload.github.com/benignware/scaffold_assoc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fscaffold_assoc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269663320,"owners_count":24455799,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-10T01:32:11.560Z","updated_at":"2025-08-10T01:33:02.408Z","avatar_url":"https://github.com/benignware.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"scaffold_assoc\n==============\n\n\u003e Scaffold nested resources with Rails\n\nInstall\n-------\n\n```\n# Gemfile\ngem \"scaffold_assoc\"\n```\n\nUsage\n-----\n\nGenerate parent scaffold:\n```\nrails g scaffold Post title:string content:text\n```\n\nGenerate association scaffold:\n```\nrails g scaffold_assoc Post/Comment title:string content:text\n```\n\nHit `rake routes` to inspect nested resource routes.\n\nSince scaffold_assoc only handles the association side of a model, you will have to add an has_many-relation to the parent model as well:\n\n```ruby\n# app/models/post.rb\nclass Post \u003c ActiveRecord::Base\n  has_many :comments\nend\n```\n\nCustomize views\n---------------\n\nThe plugin ships with .erb and .haml-templates.\n\nInstall view templates to lib/rails/scaffold_assoc/templates:\n```\nrails g scaffold_assoc:install\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fscaffold_assoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenignware%2Fscaffold_assoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fscaffold_assoc/lists"}