Fix bug in code example from layouts and rendering guide

The code in 2.3.2 assumed that render has an alert option like
redirect_to to create a flash alert message, but it doesn't.