{"id":19787214,"url":"https://github.com/logandk/acts_as_name","last_synced_at":"2026-06-11T19:31:15.906Z","repository":{"id":633946,"uuid":"274909","full_name":"logandk/acts_as_name","owner":"logandk","description":"Rails plugin that handles names in split into first and last name columns","archived":false,"fork":false,"pushed_at":"2009-08-11T11:31:46.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T14:09:20.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Maks3w/xmldsig","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logandk.png","metadata":{"files":{"readme":"README.markdown","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-08-11T10:52:17.000Z","updated_at":"2023-03-05T01:57:13.000Z","dependencies_parsed_at":"2022-07-07T13:40:36.157Z","dependency_job_id":null,"html_url":"https://github.com/logandk/acts_as_name","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/logandk/acts_as_name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Facts_as_name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Facts_as_name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Facts_as_name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Facts_as_name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logandk","download_url":"https://codeload.github.com/logandk/acts_as_name/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Facts_as_name/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34215253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":"2024-11-12T06:21:48.980Z","updated_at":"2026-06-11T19:31:15.790Z","avatar_url":"https://github.com/logandk.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"`acts_as_name` - Helpers for managing first and last name columns\n===============================================================\n\nThis is a Ruby on Rails plugin that adds some functionality to `ActiveRecord`, to ease the handling of names that are split into two columns.\n\n\nInstallation\n============\n\nAs a Rails Plugin\n-----------------\n\nUse this to install as a plugin in a Ruby on Rails app:\n\n\t$ script/plugin install git://github.com/logandk/acts_as_name.git\n\n\nAs a Rails Plugin (using git submodules)\n----------------------------------------\n\nUse this if you prefer the idea of being able to easily switch between using edge or a tagged version:\n\n\t$ git submodule add git://github.com/logandk/acts_as_name.git vendor/plugins/acts_as_name\n\n\n\nUsage\n=====\n\nAfter installation, create your migration:\n\n\tclass CreatePeople \u003c ActiveRecord::Migration\n\t  def self.up\n\t    create_table :people do |t|\n\t      t.string :first_name, :null =\u003e false\n\t      t.string :last_name, :null =\u003e false\n\t    end\n\t  end\n\n\t  def self.down\n\t    drop_table :people\n\t  end\n\tend\n\n\nIn this case, the name is split into a `first_name` and a `last_name` column.\n\nNext, create your model:\n\n\tclass Person \u003c ActiveRecord::Base\n\t\tacts_as_name\n\tend\n\nYou can now use the helper methods provided by this plugin:\n\n\t\u003e\u003e @person = Person.find :first\n\t=\u003e #\u003cPerson first_name: \"John\", last_name: \"Johnson\", ...\u003e\n\t\n\t\u003e\u003e @person.name\n\t=\u003e \"John Johnson\"\n\t\n\t\u003e\u003e @person.letter\n\t=\u003e \"J\"\n\t\n\t\u003e\u003e @person.name :format =\u003e :short\n\t=\u003e \"J. Johnson\"\n\t\n\t\u003e\u003e Person.name_like \"John\"\n\t=\u003e [#\u003cPerson id:...\u003e, #\u003cPerson id:...\u003e]\n\n\nConfiguration\n-------------\n\nYou can configure the plugin in your model:\n\n\tclass Person \u003c ActiveRecord::Base\n\t\tacts_as_name :first_name_column =\u003e \"name1\", :last_name_column =\u003e \"name2\"\n\tend\n\n\nCredits\n=======\nCopyright (c) 2009 Logan Raarup, released under the MIT license","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogandk%2Facts_as_name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogandk%2Facts_as_name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogandk%2Facts_as_name/lists"}