{"id":26978866,"url":"https://github.com/llopez/js_router","last_synced_at":"2025-08-17T01:32:19.343Z","repository":{"id":137787480,"uuid":"1438128","full_name":"llopez/js_router","owner":"llopez","description":"Map rails routes helpers to javascripts functions","archived":false,"fork":false,"pushed_at":"2013-02-26T18:40:30.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T13:49:35.153Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llopez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-03-04T04:41:18.000Z","updated_at":"2013-08-27T13:07:35.000Z","dependencies_parsed_at":"2023-03-11T04:43:13.721Z","dependency_job_id":null,"html_url":"https://github.com/llopez/js_router","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/llopez/js_router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llopez%2Fjs_router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llopez%2Fjs_router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llopez%2Fjs_router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llopez%2Fjs_router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llopez","download_url":"https://codeload.github.com/llopez/js_router/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llopez%2Fjs_router/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270796229,"owners_count":24647320,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"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":"2025-04-03T13:49:38.591Z","updated_at":"2025-08-17T01:32:19.311Z","avatar_url":"https://github.com/llopez.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Js Router\n=========\n\n[![Build Status](https://travis-ci.org/llopez/js_router.png?branch=master)](https://travis-ci.org/llopez/js_router)\n\n### Introduction:\n\nThis is a Rails Engine for Rails3.\n\nMap your rails url helpers into javascript.\n\n### Installation:\n\nAdd to your Gemfile.\n\n    gem 'js_router', :git =\u003e 'git://github.com/llopez/js_router.git'\n\nThen:\n\n    $ bundle\n\n### Dependencies:\n\nThis engine uses the yui-compressor gem for compact javascripts.\n\n    gem install yui-compressor\n    \n### Setup:\n\nIn your application layout.\n\n    javascript_include_tag '/javascripts/routes', 'application'\n    \n### Now you can do:\n\nIf your config/routes.rb file looks like this:\n\n    YourApp::Application.routes.draw do\n      resources :posts\n    end\n\nYou can do:\n\n    jsRouter.postsPath()     =\u003e /posts\n    jsRouter.newPostPath()   =\u003e /posts/new\n    jsRouter.postPath(1)     =\u003e /posts/1\n    jsRouter.editPostPath(1) =\u003e /posts/1/edit\n\nOr with extra params:\n\n    postPath(1, {name: 'john', type: 'person'})  =\u003e /posts/1?name=john\u0026type=person\n\n### Testing\n\n    rake test\n    \n### TODO\n\nGenerate urls with domain.\n\n### Author\n\nllopez (Luis Lopez).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllopez%2Fjs_router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllopez%2Fjs_router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllopez%2Fjs_router/lists"}