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

jimschubert
In Chapter 3, the source for index introduces Config on page 31, followed by more code including tests; Config isn’t introduced until pag...
New
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
brianokken
Many tasks_proj/tests directories exist in chapters 2, 3, 5 that have tests that use the custom markers smoke and get, which are not decl...
New
ianwillie
Hello Brian, I have some problems with running the code in your book. I like the style of the book very much and I have learnt a lot as...
New
Alexandr
Hi everyone! There is an error on the page 71 in the book “Programming machine learning from coding to depp learning” P. Perrotta. You c...
New
cro
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
nicoatridge
Hi, I have just acquired Michael Fazio’s “Kotlin and Android Development” to learn about game programming for Android. I have a game in p...
New
jskubick
I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint. How to replicate: load chapter-7 from zipfile i...
New
taguniversalmachine
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
kolossal
Hi, I need some help, I’m new to rust and was learning through your book. but I got stuck at the last stage of distribution. Whenever I t...
New

Other popular topics Top

DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
siddhant3030
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
PragmaticBookshelf
Design and develop sophisticated 2D games that are as much fun to make as they are to play. From particle effects and pathfinding to soci...
New
AstonJ
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
Rainer
Not sure if following fits exactly this thread, or if we should have a hobby thread… For many years I’m designing and building model air...
New
PragmaticBookshelf
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
AstonJ
Seems like a lot of people caught it - just wondered whether any of you did? As far as I know I didn’t, but it wouldn’t surprise me if I...
New
gagan7995
API 4 Path: /user/following/ Method: GET Description: Returns the list of all names of people whom the user follows Response [ { ...
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

Sub Categories: