{"id":37231557,"url":"https://github.com/rubymonolith/superlink","last_synced_at":"2026-01-15T03:44:41.045Z","repository":{"id":282481925,"uuid":"948747321","full_name":"rubymonolith/superlink","owner":"rubymonolith","description":"A more powerful path and url generator for Rails","archived":false,"fork":false,"pushed_at":"2025-03-28T17:37:51.000Z","size":22,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T22:37:21.250Z","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/rubymonolith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2025-03-14T22:16:29.000Z","updated_at":"2025-11-03T22:40:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f264189-c09f-4b9b-ba1f-7c1a34b977e7","html_url":"https://github.com/rubymonolith/superlink","commit_stats":null,"previous_names":["rubymonolith/superlink","beautifulruby/superlink"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rubymonolith/superlink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonolith%2Fsuperlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonolith%2Fsuperlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonolith%2Fsuperlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonolith%2Fsuperlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubymonolith","download_url":"https://codeload.github.com/rubymonolith/superlink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonolith%2Fsuperlink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28415412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-15T03:44:40.430Z","updated_at":"2026-01-15T03:44:41.038Z","avatar_url":"https://github.com/rubymonolith.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Superlink\n\nSuperlink tames the verbosity of Rails' `link_to`, `*_path`, and `*_url` helpers by providing a more concise, readable, and extensible alternative.\n\nFor example, a link that deletes a user from a Rails admin panel might look like this:\n\n```erb\n\u003c%= link_to \"Delete #{@user.name}\", admin_user_path(@user), data_turbo_method: \"delete\" %\u003e\n```\n\nWith Superlink, the same link can be written as:\n\n```erb\n\u003c%= delete(@user, \u0026:name) %\u003e\n```\n\nAssuming the controller has been scoped to the `admin` namespace:\n\n```ruby\nclass Admin::UsersController \u003c ApplicationController\n  def url = Admin::Links.new(request.url)\nend\n```\n\nSuperlink helpers are Ruby objects, which means you can extend them, add your own helper methods, and customize them way beyond Rails url helper methods. In Rails, they live in the `app/links` folder:\n\n```\n$ tree ./app/links\n├── application_link.rb\n├── admin_link.rb\n```\n\nThese Ruby objects make scoping and testing URL generators more sane.\n\n```ruby\n# app/links/admin_link.rb\nclass Admin::Link \u003c ApplicationLink\n  # Slap an `admin` prefix in front of the route.\n  def url\n    root.join(:admin, super)\n  end\n\n  # Deal with a model that doesn't map directly to a resource within the `admin` namespace. This example would end up with a URL like `/admin/invitation/1` if\n  # called via `url(@project_invitation)`.\n  def model_segments(model)\n    case model\n    when ProjectInvitation\n      :invitation\n    else\n      super\n    end\n  end\nend\n```\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n```bash\nbundle add superlink\n```\n\nThen reboot your Rails server.\n\n## Usage\n\nSuperlink is still under active development! When its finished, usage instructions will be included here. 🤠\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/superlink. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/superlink/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Superlink project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/superlink/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubymonolith%2Fsuperlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubymonolith%2Fsuperlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubymonolith%2Fsuperlink/lists"}