
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 nowhttp://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 aNoMethodError
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
afterbin/rails action_text:install
and beforebin/rails db:migrate
because the ActionText install adds in theimage_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 theSupportRequest
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 torich_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 theOrder
model (has_many :support_requests, dependent: :nullify
) never gets created. I discovered it when I created aSupportRequest
fixture that had an order and my other tests started failing.
Marked As Solved

rubys
Author of Agile Web Development With Rails
Very thorough! Thanks!
Popular Pragmatic Bookshelf topics

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

Title: Web Development with Clojure, Third Edition - migrations/create not working: p159
When I execute the command:
user=> (create-...
New

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

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

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

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

I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint.
How to replicate:
load chapter-7 from zipfile i...
New

Title: Build a Weather Station with Elixir and Nerves: Problem connecting to Postgres with Grafana on (page 64)
If you follow the defau...
New

When running tox for the first time, I got the following error:
ERROR: InterpreterNotFound: python3.10
I realised that I was running ...
New

Modern Front-End Development for Rails - application does not start after run bin/setup (page xviii)
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

@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

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

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

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

Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New

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

Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New

Author Spotlight
Jamis Buck
@jamis
This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New

I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc.
However, I don’t...
New

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
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /java
- /haskell
- /onivim
- /svelte
- /typescript
- /crystal
- /c-plus-plus
- /kotlin
- /tailwind
- /gleam
- /react
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /opensuse
- /centos
- /php
- /deepseek
- /html
- /scala
- /zig
- /textmate
- /sublime-text
- /debian
- /nixos
- /lisp
- /agda
- /react-native
- /kubuntu
- /arch-linux
- /ubuntu
- /revery
- /django
- /manjaro
- /spring
- /diversity
- /nodejs
- /lua
- /c
- /slackware
- /julia
- /neovim