'Is Ruby on Rails getting started guide up to date?

I'm trying to learn ruby on rails from the official website guide, and I copy paste almost all code but some seems not working. like this on for exemple, I get this error undefined local variable or method `comment' for #<ActionView::Base:0x0000000000cfd0>.

 <p>
    <%= link_to "Destroy Comment", [comment.article, comment], data:
    {
                  turbo_method: :delete,
                  turbo_confirm: "Are you sure?"
    } %>
 </p>

I use rails 7.0.2.3



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source