Skip to content
Convenience functions for using Elm with Rails.
Branch: master
Clone or download
Latest commit de95e51 May 28, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
integration add manual integration tests Mar 15, 2019
src fix type variable Mar 15, 2019
tests modernize test infrastructure (tests still fail, though) Mar 15, 2019
.gitignore Initial commit. Sep 9, 2015
LICENSE Initial commit. Sep 9, 2015
elm.json bump to 9.0.0 Mar 15, 2019 alert that tests don't work when we try and run them Mar 15, 2019

Convenience functions for working with Elm in Rails

If 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 <meta> tag. For a drop-in fix, include 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 on the page is much easier!)


You can’t perform that action at this time.