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
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
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps.
With:
ruby-3.0.0
s...
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
I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New
Hi,
I completed chapter 6 but am getting the following error when running:
thread 'main' panicked at 'Failed to load texture: IoError(O...
New
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error.
lib/pento_web/live/product_l...
New
It seems the second code snippet is missing the code to set the current_user:
current_user: Accounts.get_user_by_session_token(session["...
New
When running the program in chapter 8, “Implementing Combat”, the printout Health before attack was never printed so I assumed something ...
New
@mfazio23
I’ve applied the changes from Chapter 5 of the book and everything builds correctly and runs. But, when I try to start a game,...
New
Other popular topics
I know that -t flag is used along with -i flag for getting an interactive shell. But I cannot digest what the man page for docker run com...
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’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
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol:
bre...
New
Author Spotlight
Mike Riley
@mriley
This month, we turn the spotlight on Mike Riley, author of Portable Python Projects. Mike’s book ...
New
Author Spotlight
Erin Dees
@undees
Welcome to our new author spotlight! We had the pleasure of chatting with Erin Dees, co-author of ...
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
A Brief Review of the Minisforum V3 AMD Tablet.
Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New
Curious what kind of results others are getting, I think actually prefer the 7B model to the 32B model, not only is it faster but the qua...
New
A concise guide to MySQL 9 database administration, covering fundamental concepts, techniques, and best practices.
Neil Smyth
MySQL...
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
- /crystal
- /c-plus-plus
- /tailwind
- /react
- /gleam
- /ocaml
- /elm
- /flutter
- /vscode
- /ash
- /opensuse
- /html
- /centos
- /php
- /deepseek
- /zig
- /scala
- /lisp
- /textmate
- /sublime-text
- /react-native
- /nixos
- /debian
- /agda
- /kubuntu
- /arch-linux
- /deno
- /django
- /revery
- /ubuntu
- /nodejs
- /manjaro
- /spring
- /diversity
- /lua
- /julia
- /c
- /slackware







