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

johnp
Running the examples in chapter 5 c under pytest 5.4.1 causes an AttributeError: ‘module’ object has no attribute ‘config’. In particula...
New
johnp
Hi Brian, Looks like the api for tinydb has changed a little. Noticed while working on chapter 7 that the .purge() call to the db throws...
New
jeffmcompsci
Title: Design and Build Great Web APIs - typo “https://company-atk.herokuapp.com/2258ie4t68jv” (page 19, third bullet in URL list) Typo:...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
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
hazardco
On page 78 the following code appears: &lt;%= link_to ‘Destroy’, product, class: ‘hover:underline’, method: :delete, data: { confirm...
New
creminology
Skimming ahead, much of the following is explained in Chapter 3, but new readers (like me!) will hit a roadblock in Chapter 2 with their ...
New
Henrai
Hi, I’m working on the Chapter 8 of the book. After I add add the point_offset, I’m still able to see acne: In the image above, I re...
New
jwandekoken
Book: Programming Phoenix LiveView, page 142 (157/378), file lib/pento_web/live/product_live/form_component.ex, in the function below: d...
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

AstonJ
A thread that every forum needs! Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
New
New
Rainer
My first contact with Erlang was about 2 years ago when I used RabbitMQ, which is written in Erlang, for my job. This made me curious and...
New
wmnnd
Here’s the story how one of the world’s first production deployments of LiveView came to be - and how trying to improve it almost caused ...
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
PragmaticBookshelf
Author Spotlight Mike Riley @mriley This month, we turn the spotlight on Mike Riley, author of Portable Python Projects. Mike’s book ...
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New
PragmaticBookshelf
Author Spotlight: Karl Stolley @karlstolley Logic! Rhetoric! Prag! Wow, what a combination. In this spotlight, we sit down with Karl ...
New

Sub Categories: