{"id":16813212,"url":"https://github.com/ivanvc/routing_params_filters","last_synced_at":"2025-03-17T11:24:12.128Z","repository":{"id":815198,"uuid":"525044","full_name":"ivanvc/routing_params_filters","owner":"ivanvc","description":"Sends specified methods to the params","archived":false,"fork":false,"pushed_at":"2010-02-18T21:25:33.000Z","size":72,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T20:52:59.833Z","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/ivanvc.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":"2010-02-18T21:24:58.000Z","updated_at":"2014-01-06T01:09:55.000Z","dependencies_parsed_at":"2022-07-18T13:17:15.242Z","dependency_job_id":null,"html_url":"https://github.com/ivanvc/routing_params_filters","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/ivanvc%2Frouting_params_filters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanvc%2Frouting_params_filters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanvc%2Frouting_params_filters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanvc%2Frouting_params_filters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanvc","download_url":"https://codeload.github.com/ivanvc/routing_params_filters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244022637,"owners_count":20385133,"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-13T10:25:23.406Z","updated_at":"2025-03-17T11:24:12.107Z","avatar_url":"https://github.com/ivanvc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"RoutingParamsFilters\n====================\n\nThis plugin enables the ability of adding filters, or sending methods to the parameters you are expecting to read from the URL. It's useful if you are expecting to read an integer, a collection of values, etc.\n\nExample\n=======\n\nIn your routes.rb file:\n\n    ActionController::Routing::Routes.draw do |map|\n\n      map.connect \"/something/:something_id\",\n                :controller =\u003e 'some',\n                :action     =\u003e 'create',\n                :conditions =\u003e { :method =\u003e :post, :something_id =\u003e :to_i }\n      \n      ...\n      \n    end\n  \nThen:\n    curl -X POST \"http://localhost:3000/something/123\"\n    Parameters: {\"action\"=\u003e\"create\", \"something_id\"=\u003e123, \"controller\"=\u003e\"entries\"}\n\nYou can even do other things like\n    map.connect \"/something/:something_id\",\n              :controller =\u003e 'some',\n              :action     =\u003e 'create',\n              :conditions =\u003e { :method =\u003e :post, :something_id =\u003e \"split(',')\" }\n\nSo:\n    curl -X POST \"http://localhost:3000/something/123,456,789\"\n    Parameters: {\"action\"=\u003e\"create\", \"something_id\"=\u003e[\"123\",\"456\",\"789\"], \"controller\"=\u003e\"entries\"}\n\n\nCopyright (c) 2010 Ivan Valdes Castillo, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanvc%2Frouting_params_filters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanvc%2Frouting_params_filters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanvc%2Frouting_params_filters/lists"}