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

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 07_webapps/7-04_forms.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To follow along with this recipe, clone the https://github.com/clojure-cookbook/
"Show a form requesting the user's name, or greet them if they
submitted the form"
[req]
(let [name (get-in req [:params "name"])]
(let [name (get-in req [:form-params "name"])]
(if name
(show-name name)
(show-form))))
Expand Down Expand Up @@ -78,4 +78,4 @@ Note that the form keys are passed in as strings, not keywords.
==== See Also

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