{"id":17321427,"url":"https://github.com/tompave/springyrailsdemo","last_synced_at":"2025-03-27T03:16:58.927Z","repository":{"id":5574716,"uuid":"6780437","full_name":"tompave/SpringyRailsDemo","owner":"tompave","description":"A very basic Ruby on Rails 3.2.9 application to demonstrate how to use a canvas graph (powered by Springy by dhotson) with Ruby to represent Rails' ActiveRecord associations.","archived":false,"fork":false,"pushed_at":"2012-12-23T17:36:32.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T08:41:46.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tompave.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":"2012-11-20T15:46:20.000Z","updated_at":"2013-10-02T05:17:17.000Z","dependencies_parsed_at":"2022-09-22T02:50:55.643Z","dependency_job_id":null,"html_url":"https://github.com/tompave/SpringyRailsDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompave%2FSpringyRailsDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompave%2FSpringyRailsDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompave%2FSpringyRailsDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompave%2FSpringyRailsDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tompave","download_url":"https://codeload.github.com/tompave/SpringyRailsDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245773173,"owners_count":20669719,"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-10-15T13:37:31.036Z","updated_at":"2025-03-27T03:16:58.897Z","avatar_url":"https://github.com/tompave.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#SpringyRailsDemo\nThis is a very basic Ruby on Rails 3.2.9 app to demonstrate how to use a canvas network graph with Ruby to represent Rails' ActiveRecord associations.\n\nThe JavaScript data model to store the graph nodes, the HTML5 canvas drawing code (with a couple of edits), and everything else canvas-related is taken from the excellent [Springy Algorithm](https://github.com/dhotson/springy) by Dennis Hotson.\n\nThis demo is meant as an example of how to transform your models and your associations into a set of variables you can work with, and how to integrate these variables with the drawing Javascript code in the view.\n\nThe random names are provided by the [Faker Gem](http://faker.rubyforge.org/) by Benjamin Curtis.\n\n##Partials\nPartials for the **has\\_and\\_belongs\\_to\\_many** and the **has_many :through** associations are kept separate to make it easier to see how they work.  \nThey are quite similar though, and it would be easy to use just one partial with a couple of conditional statements.  \n\n##Demo\nYou can see it in action [here](http://springyrailsdemo.herokuapp.com/). It's on the Heroku free plan, so be patient if it takes a few seconds to wake up.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftompave%2Fspringyrailsdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftompave%2Fspringyrailsdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftompave%2Fspringyrailsdemo/lists"}