Agile Web Development with Rails 7 (Pragmatic Bookshelf)
Latest Threads About This Book

Steps to Reproduce:
Follow tutorial for depot app up to page 73.
Run the following as instructed:
bin/dev
Expected Result:
Server s...
New

Hello,
While trying to use the login authentication feature implemented on page 211 (iteration I2), I noticed that the flash notice we a...
New

Hi everyone,
Does anyone know when will “Agile Web Development in Rails 8” by Pragmatic Bookshelf release. I’m eager to dive into the la...
New

Agile Web Development with Rails 7 (end of chapter 11): Are there answers to the Playtime exercises?
@rubys
Answer to first exercise "Can you change the application to remove it…”
New

@rubys
Apologies, I should have turned the page before reporting the typo on page 327. It’s repeated on the first line of page 328. It s...
New

@rubys
In the section “Participating in the monitoring process” then second paragraph states that there are sixteen callbacks, fourteen ...
New

@rubys
The “Configuration” section includes the statement “We modified our database configuration to use MySQL in production”. It should...
New

@rubys
Beneath the ‘Controller’ heading the book states… “we created eight controllers: one each for the six models and the three additi...
New

@rubys
The code file /rails7/depot_tb/config/routes.rb has comments around the newly added resources :support_requests, only: %i[ index ...
New

On the last line it says that the template files are created in /app/views/order. The correct directory is /app/views/order_mailer
Cheer...
New

@rubys
The command to look around the docker image is provided (on pg. 275) before the instruction to install Docker (on pg. 277). Perha...
New

@rubys
A few issues I noticed while working on the support requests page:
A <blockquote> cannot be in a <p>. A <blockq...
New

@rubys
The SupportRequestMailer should not be referenced in the sample support_requests_controller.rb on pg. 264. This line gets added l...
New

@rubys
On Page 257, we create two new order fixtures “another_one” and “other_customer”. The text states “We have one we can use already...
New

@rubys
On page 253, the migration to create the support_requests table is different than all the previous in the book.
g is used inste...
New

On Page 252, in the following sentence:
Fill this in, remembering to use support@example.com as the From email so that the email gets r...
New

@rubys
A few suggestions for Chapter 15, Task J internationalization which will solve a few of the other open errata and simplify things...
New

When internationalizing the payment type forms, the labels should keep the object name so that the “for” attribute is set correctly on th...
New

The classes "payment-field" should be "input-field" for the name and password inputs.
New

I found that <li><%= button_to 'Logout', logout_path, method: :delete %></li> was calling the non-existent get route in...
New

@rubys
On page 264 SupportRequestsController#update is defined, and it includes a call to SupportRequestMailer.respond. However, Support...
New

On page 259 there is a code snippet with:
# START_HIGLIGHT
resources :support_requests, only: %i[ index update ]
# END_HIGLIGHT
I expec...
New

@rubys
After adding the locale switcher, attempting to switch gives the error:
Routing Error
No route matches [POST] "/"
Adding method...
New

@rubys
Improve for Capybara timing rails7/depot_r/test/test_helper.rb (Chapter 14. Task I: Logging In • 218).
Also stopped using “delet...
New

@rubys
Chapter 15. Task J: Internationalization • p232
Missing locale: “I18n.locale” cause the cart to switch languages.
Change from
...
New

@rubys
In : rails7/depot_t/app/views/carts/_cart.html.erb
The button to empty cart is not using the locale and switches back to default...
New

@rubys
Following through the book but using Rails 7.1.2.
When trying to run the test on page 118 I get -
`
Error:
ProductsControllerT...
New

@rubys
<%= turbo_stream.replace 'notice' do %>
<%= render partial: 'catalog/notice', locals: {notice: @notice} %>
<% en...
New

Good morning @rubys .
I’m on Chapter 17 of the book. Just created the docker images and docker compose configurations.
But when I the c...
New

@rubys
I’m following along (and using the book source download) but found that after updating the app/views/products/index.html.erb with ...
New
Most Active This Week
Most Active This Month

Steps to Reproduce:
Follow tutorial for depot app up to page 73.
Run the following as instructed:
bin/dev
Expected Result:
Server s...
New
Most Active This Year

@rubys
Following through the book but using Rails 7.1.2.
When trying to run the test on page 118 I get -
`
Error:
ProductsControllerT...
New

@rubys
Title: Agile Web Development with Rails 7: p286 typos
From the “Views” section of Chapter 18. The errors or awkwardness is bolde...
New

@rubys
This paragraph:
As you can see from the bin/ prefix, this is running the rails command from the bin directory. This command is ...
New

@rubys
Created the demo app with the following command from page 102:
work> rails new demo
Examined the installation wi...
New

On page 212 of the PDF you use a form_tag for the session login form. According to the Rails 7 documentation form_for and form_with have ...
New

@rubys
The text reads “It’s pretty impressive: the fields with errors are highlighted, and the errors are summarized in a nice list at th...
New

@rubys
The example at the bottom of page 41 illustrates stand-alone usage of Active Record. It requires active_record, and It omits stuf...
New

@rubys
There are several occurrences of “HotW” with a capital “W”. The framework is called Hotwire.
New

@rubys
The command that generates the scaffold for Product shows views under “erb”, should be “tailwindcss”:
depot [main] % bin/rails g...
New

@rubys
Right after the depot application is generated, there is a ls -p command.
This listing is missing Procfile.dev, which is install...
New

@rubys
Check
Most of the rest of the changes are self-explanatory, with names like text-xl, bg-blue-600, and hover:underline.
In the...
New

@rubys
The following screenshot shows what happens if we try to submit a new product with none of the fields filled in. Try it by visit...
New

@rubys
This section discusses adding an else clause to the code but the snippet shown is duplicate code already added in the previous se...
New

@rubys
The turbo_method call in rails7/depot_a/app/views/products/index.html.erb is missing a comma after :delete. The corrected method ...
New

Hi everyone,
Does anyone know when will “Agile Web Development in Rails 8” by Pragmatic Bookshelf release. I’m eager to dive into the la...
New
Most Active Last Three Years

I’m a newbie to Rails 7 and have hit an issue with the bin/Dev script mentioned on pages 112-113.
Iteration A1 - Seeing the list of prod...
New

Title: Agile Web Development with Rails 7: (page 70)
I am running windows 11 pro with rails 7.0.3 and ruby 3.1.2p20 (2022-04-12 revision...
New

AWDWR 7, page 152, page 153:
Hello everyone,
I’m a little bit lost on the hotwire part. I didn’t fully understand it.
On page 152 @rub...
New

@rubys
I’ve been struggling to get the active_job to work and after hitting a wall I resorted to using the book’s latest source code and...
New

@rubys
On the page 181 it’s said:
We also don’t have time to build a full-fledged admin user interface right now, so we’ll take advant...
New

If you’d like an easier way of dealing with uploading and storing images, take
a look at thoughtbot’s Paperclip or Rick Olson’s attachme...
New

The rows in the listing have alternating background colors. The Rails helper method called does this by setting the CSS class of each row...
New

@rubys
On Chapter 1, Installing rails, you suggest a list of text editors.
Atom is the 2nd suggestion, but on atom.io it already states...
New

@rubys
Near the bottom third of page 157, the test says “We already have a should create line_item test, so let’s add another one called...
New

@rubys
Title: Name of book: Agile Web Development with Rails 7: (21)
The rails new command will run bundler, and the error with bundler...
New

I think a hint about being extra careful when using has_no_field may be useful.
I’ve seen projects where this particular check passed, w...
New

As is:
We could fix these errors, but the result would be [that we??] end up with tests that largely duplicate tests we already have.
New

The code for the Playtime exercise uses a mixture of “<%=” and “<%” tags for starting the embedded Ruby sections. There is a diff...
New

Hi
Had a spot of bother installing Ruby 3.1.2 on the Ubuntu vm.
I couldn’t get the brightbox repository to work. Then it says to run s...
New

PDF version: B 3.0
How about adding a remark that all test can ge run using
bin/rails test:all
I find myself doing that especial when ...
New
Most Active Over Three Years

Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
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

On page 78 the following code appears:
<%= link_to ‘Destroy’, product,
class: ‘hover:underline’,
method: :delete,
data: { confirm...
New

Title: AWDWR 7 (page 118)
You are styling the add to cart button inline in the actual HTML rather than the stylesheet as per previous ve...
New

Title: AWDWR Rails 7 b1 0 pdf: In the latest (First?) pdf a minor typo on page 175 in the Iteration G2 section Rails includes another fra...
New

On (PDF) p. 68 the command to create the depot app is given as:
rails new depot --css tailwind
When I run this, I get an exception li...
New

Since rails help new states
> rails help new
Usage:
rails new APP_PATH [options]
Options:
[--skip-namespace], [--no-skip-nam...
New

Hello everyone,
I am relatively new to rails. I am reading AWDWR 7.
I am at page 120, I have some questions and having some problems.
...
New

The book states (in the section ‘Editors’, p 14):
a newly created Rails application enters the world containing forty-six files spread...
New

The curl command listed at the top of page 12 is:
$ curl -sL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | b...
New

Hi,
the section ‘Choosing a Rails Version’ has the code
$ gem list --local rails
and then mentions:
It should return 6.0.1
Shortly...
New

Pequeña errata:
En el penúltimo párrafo:
…in your controlller or…
New

Title: AWDWR Rails 7 b1 0 pdf: In the latest (First?) pdf a minor typo on page 160 in the What We just did section, the 2nd bullet point ...
New

I’m working with Version B2.0 of the epub. After making the changes in Iteration F4, the app crashes and the console shows errors related...
New

Hi all,
the code on page 117 to get the of create a cart object is:
def set_cart
@cart = Cart.find(session[:cart_id])
rescue ActiveRe...
New
Publisher:
Pragmatic Bookshelf
Latest in Agile Web Development with Rails 7
Get money off!

The Pragmatic Bookshelf
35% off any eBook
Use the coupon code "devtalk.com" to get 35% off any eBook published by PragProg!