![]() | Chapter 11, Iteration F2: Flash notice not displayed |
|
17 Jan 2010, 13:09
SETHP (3 posts) |
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 |
| You must be logged in to comment |

