{"id":19001471,"url":"https://github.com/bumi/nestedutils","last_synced_at":"2025-07-29T07:38:03.231Z","repository":{"id":419076,"uuid":"38847","full_name":"bumi/nestedutils","owner":"bumi","description":"Some lovely utils to work with nested resources","archived":false,"fork":false,"pushed_at":"2009-12-06T19:24:59.000Z","size":80,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T18:31:32.242Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bumi.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-07-31T11:26:45.000Z","updated_at":"2019-08-13T13:30:28.000Z","dependencies_parsed_at":"2022-07-07T18:12:21.066Z","dependency_job_id":null,"html_url":"https://github.com/bumi/nestedutils","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/bumi%2Fnestedutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fnestedutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fnestedutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fnestedutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bumi","download_url":"https://codeload.github.com/bumi/nestedutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240020556,"owners_count":19735215,"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-11-08T18:11:20.963Z","updated_at":"2025-02-21T13:24:41.747Z","avatar_url":"https://github.com/bumi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"NESTED UTILS\n===============\n\nEasy handling of nested resources with support for custom domains. \n\nrequires find_by_param plugin: http://github.com/bumi/find_by_param\n[insert README here] ;)\n\nIf you have questions: michael@railslove.com\n\nEXAMPLE:\n===============\n\nclass ApplicationController \u003c ActionController::Base\n  include Railslove::Routes::NestedUtils\n\thelper_method :polymorphic_object_url,:polymorphic_object, :endmost_index_url, :current_url, :new_current_url, :edit_current_url, :scoped_url_for, :normalized_request_uri,\n\tbefore_filter :get_request_uri\nend\n\n\n\nURL: /posts/bumi/comments\n\u003e polymorphic_object # =\u003e Post.find_by_param(\"bumi\")\n\u003e polymorphic_object! # =\u003e Post.find_by_param!(\"bumi\") (raises an error if not found)\n\n\nURL: /posts/bumi/comments/1/pictures/3\n\u003e polymorphic_object # =\u003e Picture.find_by_param(3)\n\u003e polymorphic_object(2) # =\u003e Comment.find_by_param(1)\n\u003e polymorphic_object(3) # =\u003e Post.find_by_param(\"bumi\")\n\n\u003e current_url # =\u003e generated with post_comment_picture_url(...) -  /posts/bumi/comments/1/pictures/3\n\n\u003e init_polymorphic_variables # =\u003e sets @post, @comment and @picture - you can call this in a before_filter to set all instance variables of nested objects\n\n\u003e endmost_index_url# =\u003e /posts/bumi/comments/1/pictures\n\n\nURL: /posts/bumi\n\n\u003e scoped_url_for(@comment) # =\u003e /posts/bumi/comments/25\n\n\n\nNOTE if you use custom verbs on your resources add something like this to your application.rb\n\ndef verbs_to_ignore \n  %w{new edit activate}\nend\n\n\n\nMichael Bumann - Railslove.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Fnestedutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbumi%2Fnestedutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Fnestedutils/lists"}