11 Oct 2013, 15:43
Generic-user-small

craig ferry (12 posts)

On page 124 of the chapter on ring you show how to interact with the repl.

For people that are coding as they go rather than just copying and pasting the code you have provided as a download there is no mention of setting up the dependencies in project.clj first.

As a result the korma dependencies are not downloaded and ring repl generates an error when (require ‘zap.models) is called.

13 Dec 2013, 02:39
Generic-user-small

shn (1 post)

I came across the same issue. Would be nice it was mentioned especially for those who are not familiar with Clojure like myself. Thanks.

25 Jul 2014, 12:12
Generic-user-small

Mark Pawelek (2 posts)

1) Add these dependencies in the project.clj file:

[korma “0.3.2”] [org.xerial/sqlite-jdbc “3.7.2”]

2) Recompile. You can do that from the command line, via Leiningen, under the hello directory:

lein compile

3) Now check your webpage is still OK. Refreshing it should still give you “Hello, World!”

4) Run the lein repl again (from under the hello directory). You should see it retrieving korma

(require ‘zap.models)

no longer gives an error.

  You must be logged in to comment