Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd9f336

Browse files
author
Ryan Neufeld
committed
Merge pull request clojure-cookbook#400 from cloojure/patch-11
Update 7-04_forms.asciidoc: correct :params -> :form-params
2 parents fe821c5 + 3de7988 commit fd9f336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

07_webapps/7-04_forms.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To follow along with this recipe, clone the https://github.com/clojure-cookbook/
4242
"Show a form requesting the user's name, or greet them if they
4343
submitted the form"
4444
[req]
45-
(let [name (get-in req [:params "name"])]
45+
(let [name (get-in req [:form-params "name"])]
4646
(if name
4747
(show-name name)
4848
(show-form))))
@@ -78,4 +78,4 @@ Note that the form keys are passed in as strings, not keywords.
7878
==== See Also
7979

8080
* <<sec_ring_middleware>>
81-
* Ring's http://bit.ly/ring-parameters[parameters documentation]
81+
* Ring's http://bit.ly/ring-parameters[parameters documentation]

0 commit comments

Comments
 (0)