/books/programming-phoenix-liveview
Active Threads:
Latest Threads About This Book
![sfractal](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sfractal/120/6387_2.png)
I entered the code on page 52 establishing a new authenticated route and it won’t compile. I get:
$ iex -S mix phx.server ...
New
![enoonan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/enoonan/120/6103_2.png)
The beginning of the “Use the Component” section instructs readers:
Alias the component in SurveyLive by adding this line to the top you...
New
![enoonan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/enoonan/120/6103_2.png)
In this section, at the point where it tells the reader to “Start up the server, log in, and point your browser at /promo… You should see...
New
![enoonan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/enoonan/120/6103_2.png)
The book instructs readers to:
Open up lib/pento_web/live/product_live/index.html.heex and add a header that renders the value of the @g...
New
![enoonan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/enoonan/120/6103_2.png)
I did the exercises in the “Your Turn” section of “Code Generation > Phoenix Authentication”.
As a result, when I did the generation ...
New
![enoonan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/enoonan/120/6103_2.png)
The sample code for explicitly adding the root layout seems to be outdated. I started the book this morning and just now got a “module do...
New
![zagoli](https://forum.devtalk.com/user_avatar/forum.devtalk.com/zagoli/120/6048_2.png)
Hi, I just finished reading Programming Phoenix LiveView B10 PDF edition.
I found some typos and errata, and I will report them all in t...
New
![DestyNova](https://forum.devtalk.com/user_avatar/forum.devtalk.com/DestyNova/120/5940_2.png)
Some typos and confusing bits I’ve noticed in the first 100 pages or so:
pp 12: “Now, start the web server” – the output snippet should...
New
![robrain](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Given it’s due in April, is the content complete now? Is it worth “really” reading the book now? Or are there tonnes of non-typo changes ...
New
![entilldaniel](https://forum.devtalk.com/user_avatar/forum.devtalk.com/entilldaniel/120/5833_2.png)
On page 77 the book tells us to add a validation rule checking that the unit price is greater than 0.0 then on page 161 it’s suggested th...
New
Most Active This Week
Most Active This Month
![sfractal](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sfractal/120/6387_2.png)
I entered the code on page 52 establishing a new authenticated route and it won’t compile. I get:
$ iex -S mix phx.server ...
New
Most Active This Year
![Erica](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Author Spotlight: Bruce Tate (@redrapids)
Programming languages always emerge out of need, and if that’s not always true, they’re def...
New
![cro](https://forum.devtalk.com/user_avatar/forum.devtalk.com/cro/120/2547_2.png)
I am working on the “Your Turn” for chapter one and building out the restart button talked about on page 27. It recommends looking into ...
New
![Erica](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Author Spotlight: Sophie DeBenedetto (@SophieDeBenedetto)
The days of the traditional request-response web application are long gone,...
New
![gorkaio](https://forum.devtalk.com/user_avatar/forum.devtalk.com/gorkaio/120/4956_2.png)
root_layout: {PentoWeb.LayoutView, :root},
This results in the following following error:
no “root” html template defined for PentoWeb...
New
![arcanemachine](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Disclaimer: I hope all of this is accurate, and not the result of some stupid typo I failed to notice. Anyways…
This post comprises 2 is...
New
![oboudry-mvp](https://forum.devtalk.com/user_avatar/forum.devtalk.com/oboudry-mvp/120/4983_2.png)
The schemaless form defined in file “lib/pento_web/live/promo_live.html.heex” on page 133 of the book requires some transformation. The :...
New
![norbu09](https://forum.devtalk.com/user_avatar/forum.devtalk.com/norbu09/120/4949_2.png)
I keep suggesting this book to people that want to learn Phoenix but never actually went through it myself. Today i picked the latest ver...
New
![arcanemachine](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Since LiveView now supports Streams, the generated code seems to be pushing the user in that direction as well.
As a result, the example...
New
![bzuu](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
The link to live_patch/2 on the bottom of the page does not work. It seems this function no longer exists in the latest version. This may...
New
![faried](https://forum.devtalk.com/user_avatar/forum.devtalk.com/faried/120/2551_2.png)
The first heex block of code in the section The Promo Live View should just be the <.header>; the code errors out if you include th...
New
![AntonRich](https://forum.devtalk.com/user_avatar/forum.devtalk.com/AntonRich/120/3165_2.png)
p 150
Now, we’re ready to plug our custom code into the save_product helper functions.
Since we’ve delegated most of the hard work to t...
New
![arcanemachine](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
I would like to share my thoughts on working through chapter 10 (‘Test Your Live Views’):
Because I worked through the previous exerci...
New
![Pistrie](https://forum.devtalk.com/user_avatar/forum.devtalk.com/Pistrie/120/5056_2.png)
Currently the component looks like this:
<div>
<.form :let={f} for={@changeset} phx-submit="save" phx-target={@myse...
New
![ghenry](https://forum.devtalk.com/user_avatar/forum.devtalk.com/ghenry/120/4533_2.png)
Please can we have this section added rather than:
Our app doesn’t currently have a concept of “admin” users, and we’ll leave building ...
New
![Rolando](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Title: Programming Phoenix LiveView: P97 test authentication generation issue
I’m not familiar with the syntax (auth *) → mix test
If I...
New
Most Active Last Three Years
![PragmaticBookshelf](https://forum.devtalk.com/user_avatar/forum.devtalk.com/PragmaticBookshelf/120/463_2.png)
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
![Margaret](https://forum.devtalk.com/user_avatar/forum.devtalk.com/Margaret/120/237_2.png)
A Hero’s Journey with Sophie DeBenedetto
@SophieDeBenedetto author of Programming Phoenix Liveview, discusses her journey to becom...
New
![Charles](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
![akraut](https://forum.devtalk.com/user_avatar/forum.devtalk.com/akraut/120/3832_2.png)
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error.
lib/pento_web/live/product_l...
New
![taguniversalmachine](https://forum.devtalk.com/user_avatar/forum.devtalk.com/taguniversalmachine/120/3274_2.png)
It seems the second code snippet is missing the code to set the current_user:
current_user: Accounts.get_user_by_session_token(session[&...
New
![jwandekoken](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jwandekoken/120/4034_2.png)
Book: Programming Phoenix LiveView, page 142 (157/378), file lib/pento_web/live/product_live/form_component.ex, in the function below:
d...
New
![jgchristopher](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jgchristopher/120/3377_2.png)
“The ProductLive.Index template calls a helper function, live_component/3, that in turn calls on the modal component. ”
Excerpt From: Br...
New
![StoatPower](https://forum.devtalk.com/user_avatar/forum.devtalk.com/StoatPower/120/4645_2.png)
Title: Programming Phoenix LiveView B8 - entire Ch4 modal component section needs correcting (Page 101-114)
Example: Programming Flutter...
New
![asibbald](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
In this - and subsequent - “Give it a try” sections, it would be very useful to have the answers, both to confirm whether we got it right...
New
![carlomunguia](https://forum.devtalk.com/user_avatar/forum.devtalk.com/carlomunguia/120/4093_2.png)
(Phoenix 1.6.6, Ecto 3.7.2, Elixir 1.13)
When building the custom Survey context, we are told to then update the rating.ex file with the...
New
![jaeyson](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jaeyson/120/3052_2.png)
Programming Phoenix Liveview: live_modal to live_component (page 101)
Hi, First of all thank you for this awesome book.
I saw minor cha...
New
![herminiotorres](https://forum.devtalk.com/user_avatar/forum.devtalk.com/herminiotorres/120/570_2.png)
On Chapter 3 - Page 78, the beginning of the page has this code here:
@doc """
Maybe it is missing to put the Pento cont...
New
![dzen](https://forum.devtalk.com/user_avatar/forum.devtalk.com/dzen/120/4413_2.png)
The introduction instructions under section “Build a Simple LiveView” are incomplete. If followed from book one gets the following error:...
New
![rubyist](https://forum.devtalk.com/user_avatar/forum.devtalk.com/rubyist/120/2961_2.png)
The text talks about adding two keys to assigns, a session_id key and a current_user key, but the example code is only showing the sessio...
New
![bzuu](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
In the code sample for auth /pento/lib/pento_web/live/user_auth_live.ex the on_mount function is defined as:
on_mount(_, params, %{"...
New
Book Info
Publisher:
Pragmatic Bookshelf
Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.
Get money off!
![](/assets/discounts/logo-pragprog-e2f9c555cf054b1bd6bf9875d757a13d9eb4abb8313ffa439feabaf3ed463947.png)
The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.