title: rails/ruby "and return false" syntax
body: <p>I've seen this code in a rails tutorial I'm doing</p>
  
  <pre><code>def access_denied
    redirect_to login_path, :notice =&gt; "Please log in to continue" and return false
  end
  </code></pre>
  
  <p>Before learning rails, I did a large amount of ruby research and none of the books I read covered this "and return false" syntax going on here. I can't find any mention of it in the rails syntax, is anyone able to provide a link or any explanation that would clear this up? </p>
  
  <p>I don't understand the need for the "and" in here as I thought ruby would always return the last evaluated expression.</p>