{"push_id":938701582,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"7b225fd21a5100ad1879b2585f9fb257551f3b38","before":"720219487e60b2552b400b6c20967a25f197675b","commits":[{"sha":"7b225fd21a5100ad1879b2585f9fb257551f3b38","author":{"email":"5ee0edb9e2229c0838f1959779f1949031de0123@timmorgan.org","name":"Tim Morgan"},"message":"Show error messages\n\nRails has some called the \"flash\". The flash is a storage area tied to\nthe current session which allows a controller action to persist a\nmessage to be displayed on the subsequent request. This is generally\nused to show a message to the user after being redirected.\n\nDevise sets a flash message when the user enters an incorrect password,\nand we aren't showing the flash message, so the user is just presented\nwith the login form again. Let's fix that!\n\nAdd the following markup to your application layout:\n\n    <% flash.each do |type, message| %>\n      <div class=\"alert alert-warning\" role=\"alert\"><%= message %></div>\n    <% end %>\n\nThis code simply shows anything in the flash as a warning. If you want,\nyou could change the style of the alert box based on the `type` of the\nflash message (e.g. success, warning, danger, etc.).\n\nTry logging in with the wrong password again, and you should see an\nerror message.\n\nWhile we're improving the looks of things, let's add some margin to our\n`nav` element. Add CSS to `app/assets/stylesheets/application.css`:\n\n    nav {\n      margin: 5px 0 15px;\n    }","distinct":true,"url":"https://api.github.com/repos/seven1m/trail-tutorial/commits/7b225fd21a5100ad1879b2585f9fb257551f3b38"}]}