Commit graph

5 commits

Author SHA1 Message Date
Phil Hofmann
478ee18a32 improve some docs 2021-07-27 18:33:17 +02:00
Steven Deobald
7fb720ef36 Handle nil for lower-case
- when "_method" is actually empty, we need to avoid trying to
  do string manipulation on nil from params.
2020-12-15 19:29:50 -06:00
Steven Deobald
a3b251449b Downcase hidden methods in RESTful example
- this documentation is mildly confusing when combined with hiccup's
  `form-to` since hiccup forcibly transforms the method specified in
  its convenience syntax: `(form-to [:delete "/my-url"] ... )` into an
  upper-case string:
  80e48352dd/src/hiccup/form.clj (L130)

- it's also common to get an upper-case string from elsewhere so it
  seems best to wrap the hidden `_method` in `lower-case`.
2020-12-15 15:48:00 -06:00
Marcus Spiegel
8dcebcf49f Fix typos 2019-05-22 19:17:10 +02:00
Tormod Mathiesen
091f9002fc
Create RESTful_form_methods.md
After a short conversation on the clojurians slack, this is an example of how to do the "RESTful form method" pattern with reitit.
2019-01-30 14:45:02 +01:00