danott / react-rails-form-helpers

Components for composing forms targeted at Rails
MIT License
81 stars 18 forks source link

Remove document csrf query #4

Closed jamesmccann-zz closed 8 years ago

jamesmccann-zz commented 8 years ago

@danott allows for Rails' CSRF token to be passed into the FormTag via props and falls back to using the original document.querySelector("head meta[name='csrf-token']") method.

Useful if you want to server render any forms using this lib and the document is not available.