# Web Development with Clojure, Third Edition: missing refer and more page277-278 P1.0

**URL:** <https://forum.devtalk.com/t/web-development-with-clojure-third-edition-missing-refer-and-more-page277-278-p1-0/18624>\
**Category:** PragProg Customers\
**Tags:** book-web-development-with-clojure-third-edition, errata\
**Created:** [24 August 2021 02:53 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-missing-refer-and-more-page277-278-p1-0/18624 "2021-08-24T02:53:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pm9999](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/p/13edae/32.png) [@pm9999](https://forum.devtalk.com/u/pm9999)\
**Post date:** [24 August 2021 02:53 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-missing-refer-and-more-page277-278-p1-0/18624/1 "2021-08-24T02:53:37Z")

</div>

Dmitri Sotnikov @dmitri and Scot Brown @svmbrown

On page 277 `image-uploader` needs to be referred to from `components`

> ;;…  
> [:div.field  
> [:div.control  
> [image-uploader  
> #(rf/dispatch [:message/save-media %])  
> “Insert an Image”]]]  
> ;;…

On page 278 I sense that we are only trying to update the code of submit button not the whole message-form as shown:

> (defn message-form   
> [:div.card  
> [:div.card-header\>p.card-header-title  
> “Post Something!”]  
> (let [{:keys [login profile]} @(rf/subscribe [:auth/user])  
> display-name (:display-name profile login)]  
> [:div.card-content  
> [:input.button.is-primary.is-fullwidth  
> {:type :submit  
> :disabled @(rf/subscribe [:form/validation-errors?])  
> :on-click #(rf/dispatch [:message/send!  
> @(rf/subscribe [:form/fields])  
> @(rf/subscribe [:message/media])])  
> :value “comment”}]])])

---

<div class="post-metadata">

**Author:** ![svmbrown](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@svmbrown](https://forum.devtalk.com/u/svmbrown)\
**Post date:** [24 August 2021 19:46 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-missing-refer-and-more-page277-278-p1-0/18624/2 "2021-08-24T19:46:21Z")

</div>

Hi, that seems to be an issue with the code snippet generation.

Please see the source code for the full `message-form` body [here](http://media.pragprog.com/titles/dswdcloj3/code/guestbook-post-media/src/cljs/guestbook/messages.cljs).

I’ll see what I can do about getting an update published as soon as possible.

In case you’re unable to see the content of the link, the form control we wrote to insert an image should be included inside the `:div.card-content` element of `message-form`, along with the `:div.field` that contains the `textarea-input` from `guestbook.components`.

Apologies for the confusing error. Thanks for bringing it to our attention.

FYI: In the PDF version of the book, the filenames above the code blocks are clickable, and will let you view the entire namespace they are taken from.
