In the Rails Basics section under Step 3 — Scaffolding the Application, the app/views/books/index.html.erb code block is out of date. Running the dip rails generate scaffold command currently creates an index.html.erb file with the following code:
<p style="color: green"><%= notice %></p>
<h1>Books</h1>
<div id="books">
<% @books.each do |book| %>
<%= render book %>
<p>
<%= link_to "Show this book", book %>
</p>
<% end %>
</div>
<%= link_to "New book", new_book_path %>
This changes the browser output, requiring an update of application page screenshots seen under Step 4 — Creating the Application Root View and Testing Functionality.
In the Rails Basics section under Step 3 — Scaffolding the Application, the app/views/books/index.html.erb code block is out of date. Running the
dip rails generate scaffoldcommand currently creates an index.html.erb file with the following code:This changes the browser output, requiring an update of application page screenshots seen under Step 4 — Creating the Application Root View and Testing Functionality.