{"id":19806497,"url":"https://github.com/monade/underscorize_params","last_synced_at":"2026-05-13T18:02:38.325Z","repository":{"id":50484339,"uuid":"498331131","full_name":"monade/underscorize_params","owner":"monade","description":"underscorize_params, a ruby Gem that allows you to send parameters in camelcase to your rails api, without worrying about to transform them in snakecase","archived":false,"fork":false,"pushed_at":"2024-04-18T07:32:05.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-04-21T01:51:58.280Z","etag":null,"topics":["gem","parameters","rails","ruby"],"latest_commit_sha":null,"homepage":"https://monade.io/en/home-en/","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/monade.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-31T12:41:57.000Z","updated_at":"2024-04-29T08:31:25.237Z","dependencies_parsed_at":"2024-04-29T08:31:22.509Z","dependency_job_id":null,"html_url":"https://github.com/monade/underscorize_params","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monade%2Funderscorize_params","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monade%2Funderscorize_params/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monade%2Funderscorize_params/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monade%2Funderscorize_params/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monade","download_url":"https://codeload.github.com/monade/underscorize_params/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241150393,"owners_count":19918350,"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":["gem","parameters","rails","ruby"],"created_at":"2024-11-12T09:07:43.061Z","updated_at":"2025-11-11T19:30:27.542Z","avatar_url":"https://github.com/monade.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# underscorize_params\n\n## Installation\n\nAdd the Gem into your Gemfile\n\n```ruby\ngem 'underscorize_params'\n```\n\nThis gem allows you to send params to a Controller's action in camel case.\nIt gets included inside ActionController::Base\n\n```ruby\nActionController::Base.include UnderscorizeParams::Controller if defined?(ActionController::Base)\n```\n\nSuppose you have these Controller and Model:\n\nmodels/user.rb\n```ruby\nclass User \u003c ActiveRecord::Base\n  attribute :first_name, :String\n  attribute :last_name, :String\nend\n```\n\ncontrollers/users_controller.rb\n```ruby\nclass UsersController \u003c ActionController::Base\n  def create\n    @user = User.new create_params\n\n    if @user.save\n      render json: @user\n    else\n      render json: @user.errors\n    end\n  end\n\n  private\n\n  def create_params\n    params.permit(:first_name, :last_name)\n  end\nend\n```\n\nthis gem allows you to call this controller's api with parameters in camel case, such as:\n\n```typescript\nconst params = {\n  firstName: 'Friedrich',\n  lastName: 'Nietzsche'\n}\n\naxios.post('/users', params)\n```\n\nthe gem's job is very simple, received parameters get transformed into snake case in the **before_action** hook.\nCheck out the code to find out, is very simple!\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\nAbout Monade\n----------------\n\n![monade](https://monade.io/wp-content/uploads/2023/02/logo-monade.svg)\n\nunderscorize_params is maintained by [mònade srl](https://monade.io).\n\nWe \u003c3 open source software. [Contact us](https://monade.io/studio/contatti/) for your next project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonade%2Funderscorize_params","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonade%2Funderscorize_params","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonade%2Funderscorize_params/lists"}