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
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
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
Hi! I know not the intentions behind this narrative when called, on page XI:
mount() |> handle_event() |> render()
but the correc...
New
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
Running mix deps.get in the sensor_hub directory fails with the following error:
** (Mix) No SSH public keys found in ~/.ssh. An ssh aut...
New
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error.
lib/pento_web/live/product_l...
New
Hi all,
currently I wonder how the Tailwind colours work (or don’t work).
For example, in app/views/layouts/application.html.erb I have...
New
I am using Android Studio Chipmunk | 2021.2.1 Patch 2
Build #AI-212.5712.43.2112.8815526, built on July 10, 2022
Runtime version: 11.0....
New
Hello faithful readers! If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
New
Other popular topics
Reading something? Working on something? Planning something? Changing jobs even!?
If you’re up for sharing, please let us know what you’...
New
Algorithms and data structures are much more than abstract concepts. Mastering them enables you to write code that runs faster and more e...
New
There’s a whole world of custom keycaps out there that I didn’t know existed!
Check out all of our Keycaps threads here:
https://forum....
New
I’ve been hearing quite a lot of comments relating to the sound of a keyboard, with one of the most desirable of these called ‘thock’, he...
New
Was just curious to see if any were around, found this one:
I got 51/100:
Not sure if it was meant to buy I am sure at times the b...
New
Programming Ruby is the most complete book on Ruby, covering both the language itself and the standard library as well as commonly used t...
New
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig.
General-purpose programming language and toolchain for maintaini...
New
Will Swifties’ war on AI fakes spark a deepfake porn reckoning?
New
Explore the power of Ash Framework by modeling and building the domain for a real-world web application.
Rebecca Le @sevenseacat and ...
New
Ok, well here are some thoughts and opinions on some of the ergonomic keyboards I have, I guess like mini review of each that I use enoug...
New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /python
- /js
- /rails
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /haskell
- /java
- /svelte
- /onivim
- /typescript
- /kotlin
- /c-plus-plus
- /crystal
- /tailwind
- /react
- /gleam
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /html
- /opensuse
- /centos
- /php
- /deepseek
- /zig
- /scala
- /sublime-text
- /textmate
- /lisp
- /react-native
- /nixos
- /debian
- /agda
- /kubuntu
- /arch-linux
- /django
- /deno
- /revery
- /ubuntu
- /manjaro
- /spring
- /nodejs
- /diversity
- /lua
- /julia
- /c
- /slackware







