{"id":13747563,"url":"https://github.com/lihanli/cone","last_synced_at":"2025-05-09T09:30:26.076Z","repository":{"id":5885671,"uuid":"7103556","full_name":"lihanli/cone","owner":"lihanli","description":"client side rails url helpers","archived":false,"fork":false,"pushed_at":"2017-10-28T20:35:11.000Z","size":55,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-29T12:19:15.955Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lihanli.png","metadata":{"files":{"readme":"README.md","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":"2012-12-11T00:48:29.000Z","updated_at":"2018-01-31T16:16:06.000Z","dependencies_parsed_at":"2022-09-05T17:10:48.737Z","dependency_job_id":null,"html_url":"https://github.com/lihanli/cone","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/lihanli%2Fcone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihanli%2Fcone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihanli%2Fcone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lihanli%2Fcone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lihanli","download_url":"https://codeload.github.com/lihanli/cone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253226235,"owners_count":21874300,"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-08-03T06:01:33.639Z","updated_at":"2025-05-09T09:30:25.734Z","avatar_url":"https://github.com/lihanli.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# cone\n\nAutomatically generated Javascript URL helpers based on your Rails routes.\n\n## Usage\n\n```\nuser GET    /users/:id(.:format)                     users#show\n```\nLet's say you have this Rails route. Here's how you would access it in Javascript with cone:\n\n```javascript\ncone.userPath({ id: 12 });\n\"/users/12\"\n\ncone.userPath({ id: 12, format: 'json' });\n\"/users/12.json\"\n\ncone.userPath({ id: 12, format: 'json', foo: 'bar baz' });\n\"/users/12.json?foo=bar%20baz\"\n\ncone.userPath({ id: 12, foo: 'bar baz', anchor: 'foo' });\n\"/users/12?foo=bar%20baz#foo\"\n```\n\nReload the server whenever your routes change to have the Javascript regenerated.\n\n## Installation\n\n1. Add gem 'cone' to your Gemfile.\n2. Run bundle install.\n3. Add //= require cone to your Javascript manifest file (usually found at app/assets/javascripts/application.js).\n4. Restart your server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flihanli%2Fcone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flihanli%2Fcone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flihanli%2Fcone/lists"}