Working along with the Logging In paragraph 11.2, I noticed that the flash notice wasn’t displayed when I used a non-existing username:
flash.now[:notice] = "Invalid username/password combination"
After some investigation, that makes sense, because the login.html.erb doesn’t contain any code to display such a message. So I duplicated the code from store.html.erb:
<% if flash[:notice] -%> <div id="notice"><%= flash[:notice] %></div> <% end -%>
update ,which of course isn’t needed anymore after implementing iteration F4, where the store layout (including the flash display code) is applied generally :-)