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!

Popular Prag Prog topics Top

yulkin
your book suggests to use Image.toByteData() to convert image to bytes, however I get the following error: "the getter ‘toByteData’ isn’t...
New
sdmoralesma
Title: Web Development with Clojure, Third Edition - migrations/create not working: p159 When I execute the command: user=&gt; (create-...
New
lirux
Hi Jamis, I think there’s an issue with a test on chapter 6. I own the ebook, version P1.0 Feb. 2019. This test doesn’t pass for me: ...
New
herminiotorres
Hi! I know not the intentions behind this narrative when called, on page XI: mount() |&gt; handle_event() |&gt; render() but the correc...
New
adamwoolhether
When trying to generate the protobuf .go file, I receive this error: Unknown flag: --go_opt libprotoc 3.12.3 MacOS 11.3.1 Googling ...
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
brunogirin
When I run the coverage example to report on missing lines, I get: pytest --cov=cards --report=term-missing ch7 ERROR: usage: pytest [op...
New
New
akraut
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error. lib/pento_web/live/product_l...
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New

Other popular topics Top

Exadra37
Please tell us what is your preferred monitor setup for programming(not gaming) and why you have chosen it. Does your monitor have eye p...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
New
Exadra37
I am a Linux user since 2012, more or less, and I always use Ubuntu on my computers, and my last 2 laptops have been used Thinkpads, wher...
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
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1122 25133 743
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New
AstonJ
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
PragmaticBookshelf
Author Spotlight: Peter Ullrich @PJUllrich Data is at the core of every business, but it is useless if nobody can access and analyze ...
New
New

Latest in PragProg

View all threads ❯