{"id":20235014,"url":"https://github.com/noredink/elm-rails","last_synced_at":"2025-06-21T22:33:18.061Z","repository":{"id":42984795,"uuid":"42174730","full_name":"NoRedInk/elm-rails","owner":"NoRedInk","description":"Convenience functions for using Elm with Rails.","archived":false,"fork":false,"pushed_at":"2022-03-24T18:40:42.000Z","size":100,"stargazers_count":104,"open_issues_count":0,"forks_count":15,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-24T16:39:11.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/NoRedInk/elm-rails/latest","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NoRedInk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-09T11:35:43.000Z","updated_at":"2025-01-25T07:53:37.000Z","dependencies_parsed_at":"2022-07-22T12:32:40.280Z","dependency_job_id":null,"html_url":"https://github.com/NoRedInk/elm-rails","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoRedInk%2Felm-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoRedInk%2Felm-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoRedInk%2Felm-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoRedInk%2Felm-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoRedInk","download_url":"https://codeload.github.com/NoRedInk/elm-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248274473,"owners_count":21076399,"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-11-14T08:14:15.303Z","updated_at":"2025-04-10T18:52:03.653Z","avatar_url":"https://github.com/NoRedInk.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convenience functions for working with Elm in Rails\n\n\n\nIf you see lots of `401` responses on requests other than `GET` requests, it's likely because `elm-rails` doesn't know about the CSRF token Rails includes in the header in a `\u003cmeta\u003e` tag. For a drop-in fix, include [`csrf-xhr`](https://www.npmjs.com/package/csrf-xhr) on all pages which use `elm-rails`. (Alternatively, you can pass the token into your Elm program through a flag, store it in your `Model`, and add the header to all requests manually. Needless to say, including [`csrf-xhr`](https://www.npmjs.com/package/csrf-xhr) on the page is much easier!)\n\nAs of Elm 0.19 this package is just maintained so that calls in existing code don't need to\nchange. New projects should use the standard `elm/http` library\nand manage the csrf header through one of the methods described above.\n\n---\n[![NoRedInk](https://cloud.githubusercontent.com/assets/1094080/9069346/99522418-3a9d-11e5-8175-1c2bfd7a2ffe.png)](http://noredink.com/about/team)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoredink%2Felm-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoredink%2Felm-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoredink%2Felm-rails/lists"}