msducheminjr

msducheminjr

Agile Web Development with Rails 8: Iteration K3 various issues (B3 PDF p. 265-271)

  • Paragraph on p 265, you no longer navigate to http://localhost:3000/admin to login. It’s now http://localhost:3000/session/new (or just try to access the support requests resource and you’ll be redirected there after login)
  • The screenshot at the top of page 266 shows the login prompt instead of the support requests.
  • If you try to access the support requests before you set up ActionText, you’ll get a NoMethodError on the template.
  • The code snippet on pages 264-265 shouldn’t have the conditional about <% if support_request.response.blank? %> yet if the intent is to show the index before the rich text is implemented
  • You need to run a bundle install after bin/rails action_text:install and before bin/rails db:migrate because the ActionText install adds in the image_processing gem.
  • When the <% if support_request.response.blank? %> section is added on pages 267-269, it is duplicated (because it was already there in error in the previous snippet).
  • Update controller method doesn’t use the new params.expect convention. It will also respond irrespective of whether the SupportRequest successfully updates or not.
  • The rich_text_area occurrences in iteration K3 and the reference in the index at the back of the book should be updated to rich_textarea to match current Rails convention and guides.
  • There is a snippet to add SupportRequestMailer.respond(support_request).deliver_now to the update method on page 271, but it was already present (in error) on page 269.
  • This is probably more of an iteration K2 issue, but the inverse relationship to SupportRequest on the Order model (has_many :support_requests, dependent: :nullify) never gets created. I discovered it when I created a SupportRequest fixture that had an order and my other tests started failing.

Marked As Solved

rubys

rubys

Author of Agile Web Development With Rails

Very thorough! Thanks!

Where Next?

Popular Pragmatic Bookshelf topics Top

jesse050717
Title: Web Development with Clojure, Third Edition, pg 116 Hi - I just started chapter 5 and I am stuck on page 116 while trying to star...
New
sdmoralesma
Title: Web Development with Clojure, Third Edition - migrations/create not working: p159 When I execute the command: user=&gt; (create-...
New
mikecargal
Title: Hands-On Rust (Chap 8 (Adding a Heads Up Display) It looks like ​.with_simple_console_no_bg​(SCREEN_WIDTH*2, SCREEN_HEIGHT*2...
New
herminiotorres
Hi @Margaret , On page VII the book tells us the example and snippets will be all using Elixir version 1.11 But on page 3 almost the en...
New
raul
Page 28: It implements io.ReaderAt on the store type. Sorry if it’s a dumb question but was the io.ReaderAt supposed to be io.ReadAt? ...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
New
jskubick
I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint. How to replicate: load chapter-7 from zipfile i...
New
digitalbias
Title: Build a Weather Station with Elixir and Nerves: Problem connecting to Postgres with Grafana on (page 64) If you follow the defau...
New
brunogirin
When running tox for the first time, I got the following error: ERROR: InterpreterNotFound: python3.10 I realised that I was running ...
New
tkhobbes
After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
New

Other popular topics Top

wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
New
siddhant3030
I’m thinking of buying a monitor that I can rotate to use as a vertical monitor? Also, I want to know if someone is using it for program...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
rustkas
Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
PragmaticBookshelf
Author Spotlight Jamis Buck @jamis This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New

Sub Categories: