Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page decision-graph.html: get parameter from request by :word instead of "word" #7

Open
wangchunyang opened this issue Apr 15, 2015 · 0 comments

Comments

@wangchunyang
Copy link

On the page http://clojure-liberator.github.io/liberator/tutorial/decision-graph.html, it mentions to use "word" to get value of request parameter:

(= "tiger" (get-in ctx [:request :params "word"])))

However it doesn't work on my running environment (ring 1.3.2). The value is nil. So I have to use this to get value of request parameter.

(= "tiger" (get-in ctx [:request :params :word])))

Is this a bug in page? Or, is there anything wrong in my running environment?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant