On 7 July 2012 23:24, ArturoH <[email protected]> wrote: > I'm not sure that I am having a version problem but this very simple example > does not work for me. I get the POST form but when I subit the POST back I > do not see the variable content just a simple "The message was ::". I run it > with "lein run". Any help will be greatly appreciated.
You haven't added middleware to handle the parameters. You can do this manually: (use 'ring.middleware.params) (def app (wrap-params example)) But there's a helper function in Compojure that adds a bunch of common middleware for you: (require '[compojure.handler :as handler]) (def app (handler/site example)) - James -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
