Just add an function that about helper function for HTML form.
WHY:
This library depends on ring/ring-anti-forgery implicitly (because using
ring/ring-defaults). It's a enable by default.
User need add the few dependencies at a controller file, like this.
Just add an function that about helper function for HTML form.
WHY: This library depends on ring/ring-anti-forgery implicitly (because using ring/ring-defaults). It's a enable by default. User need add the few dependencies at a controller file, like this.
(use 'ring.util.anti-forgery)
(form-to [:post "/something"] (anti-forgery-field)
That's a little bit strange for me. Because I didn't added the ring/ring-anti-forgery library explicitly. So, I just want to write this
(use 'noir.util.anti-forgery)
(form-to [:post "/something"] (anti-forgery-field)
That's why I added an function as a helper function for HTML form.