This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-08
Channels
- # aws-lambda (3)
- # beginners (27)
- # boot (4)
- # cljs-dev (26)
- # clojure (7)
- # clojure-spec (8)
- # clojure-uk (17)
- # clojurescript (1)
- # core-typed (2)
- # data-science (53)
- # datomic (24)
- # emacs (1)
- # fulcro (7)
- # luminus (1)
- # off-topic (2)
- # onyx (3)
- # pedestal (5)
- # planck (2)
- # portkey (50)
- # re-frame (15)
- # reagent (5)
- # reitit (2)
- # shadow-cljs (19)
- # tools-deps (15)
- # vim (2)
I'm really confused by pedestal right now.
I'm trying to generate a url for a route, I've defined url for with (route/url-for-routes routes), and when I expand the routes I can see the name for the route I want, :route-name :user
, but when I go to (url-for :user) it says
ExceptionInfo Route not found clojure.core/ex-info (core.clj:4739)
If I curl the route it exists and works, but I can't generate urls and I'm totally stumped
@alice url-for uses a dynamic vat that is only bound when handling requests I believe. Are you trying to generate a URL in a REPL by any chance?
Yes I am. but I'm also defining my own url-for
(def url-for (route/url-for-routes routes))
And using that as the function as described here
http://pedestal.github.io/pedestal/io.pedestal.http.route.html#var-url-for-routesAnd that is not working?