{"id":19001470,"url":"https://github.com/bumi/params_required","last_synced_at":"2026-02-19T13:02:45.230Z","repository":{"id":505843,"uuid":"133260","full_name":"bumi/params_required","owner":"bumi","description":"Rails plugin to validate if certain params are present. ","archived":false,"fork":false,"pushed_at":"2009-02-20T12:54:06.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T18:31:30.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://railslove.com","language":null,"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/bumi.png","metadata":{"files":{"readme":"README","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":"2009-02-20T12:53:46.000Z","updated_at":"2019-08-13T14:02:23.000Z","dependencies_parsed_at":"2022-07-07T15:21:13.817Z","dependency_job_id":null,"html_url":"https://github.com/bumi/params_required","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%2Fparams_required","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fparams_required/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fparams_required/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fparams_required/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bumi","download_url":"https://codeload.github.com/bumi/params_required/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240020565,"owners_count":19735217,"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.826Z","updated_at":"2025-10-18T20:38:06.629Z","avatar_url":"https://github.com/bumi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"ParamsRequired\n=============\n\nparams_required adds a before_filter which tests if certain params are set. Otherwise HTTP status 404 will be rendered. \n\nExample\n=======\n\nparams_required( [array] required params, [hash] before_filter options)\n\nclass PostsController \u003c ApplicationController\n\n  # tests if params[:blog_id] and params[:user_id] are present\n  params_required :blog_id, :user_id, :except =\u003e [:show]\n  \n  # tests if params[:user][:blog_id] is present\n  params_required :user =\u003e :blog_id\n  \nend\n\n\nNote\n======\n\nthis is experimental and perhaps there are better ways to do something like this? \n\n\nCopyright (c) 2008 [Michael Bumann], released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Fparams_required","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbumi%2Fparams_required","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Fparams_required/lists"}