On 4 December 2013 10:37, James Laver <james.la...@gmail.com> wrote: > > On 4 Dec 2013, at 09:06, James Reeves <ja...@booleanknot.com> wrote: > > > It sounds like part of the issue is with ring.middleware.format > overloading the :params key, but it also seems like you might have an > unusual set of requirements. > > Actually, my larger problem was with compojure doing it. I wanted a > distinction between data coming from the route and data coming from the > form data, since after vaidation, that gets shoved straight into the > database.
Compojure also adds to the :route-params key, so if you need to, you can explicitly decide how you want maps of parameters to be merged. The :params key is just there for the convenience of the majority of users. You could write something like: (POST "/blah/:id" [id :as {params :form-params}] ...) This would get the id from the routes (as they're always merged last), and the parameters map from :form-params. - James -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.