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/adminto 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 aNoMethodErroron 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 installafterbin/rails action_text:installand beforebin/rails db:migratebecause the ActionText install adds in theimage_processinggem. - 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.expectconvention. It will also respond irrespective of whether theSupportRequestsuccessfully updates or not. - The
rich_text_areaoccurrences in iteration K3 and the reference in the index at the back of the book should be updated torich_textareato match current Rails convention and guides. - There is a snippet to add
SupportRequestMailer.respond(support_request).deliver_nowto 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
SupportRequeston theOrdermodel (has_many :support_requests, dependent: :nullify) never gets created. I discovered it when I created aSupportRequestfixture 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
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84:
bundle exec sequel...
New
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
I thought that there might be interest in using the book with Rails 6.1 and Ruby 2.7.2. I’ll note what I needed to do differently here.
...
New
Title: Hands-on Rust: question about get_component (page 295)
(feel free to respond. “You dug you’re own hole… good luck”)
I have somet...
New
First, the code resources:
Page 237: rumbl_umbrella/apps/rumbl/mix.exs
Note: That this file is missing.
Page 238: rumbl_umbrella/app...
New
Dear Sophie.
I tried to do the “Authorization” exercise and have two questions:
When trying to plug in an email-service, I found the ...
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 think I might have found a problem involving SwitchCompat, thumbTint, and trackTint.
As entered, the SwitchCompat changes color to hol...
New
When trying to run tox in parallel as explained on page 151, I got the following error:
tox: error: argument -p/–parallel: expected one...
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
Hello Devtalk World!
Please let us know a little about who you are and where you’re from :nerd_face:
New
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
poll
poll
Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
I ended up cancelling my Moonlander order as I think it’s just going to be a bit too bulky for me.
I think the Planck and the Preonic (o...
New
This looks like a stunning keycap set :orange_heart:
A LEGENDARY KEYBOARD LIVES ON
When you bought an Apple Macintosh computer in the e...
New
Tailwind CSS is an exciting new CSS framework that allows you to design your site by composing simple utility classes to create complex e...
New
Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
New
Use WebRTC to build web applications that stream media and data in real time directly from one user to another, all in the browser.
...
New
New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /python
- /rails
- /js
- /security
- /go
- /swift
- /vim
- /clojure
- /haskell
- /emacs
- /java
- /svelte
- /onivim
- /typescript
- /kotlin
- /crystal
- /c-plus-plus
- /tailwind
- /react
- /gleam
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /html
- /opensuse
- /centos
- /php
- /zig
- /deepseek
- /scala
- /sublime-text
- /lisp
- /textmate
- /react-native
- /nixos
- /debian
- /agda
- /kubuntu
- /arch-linux
- /django
- /deno
- /ubuntu
- /revery
- /spring
- /manjaro
- /nodejs
- /diversity
- /lua
- /julia
- /c
- /slackware







