title: ruby one line "check value and return"
body: <p>I'm digging through some interesting code which I'm convinced is wrong. I wondered whether anyone had a thought as to the syntax the developer was trying to use?</p>
  
  <p>Heres' the bogus code:</p>
  
  <pre><code>render :nothing =&gt; true and return if params[:name].nil?
  </code></pre>
  
  <p>My naive fix alludes to my programming language background:</p>
  
  <pre><code>if params[:name].nil?
    render :nothing =&gt; true, :status =&gt; 404
    return
  end
  </code></pre>
  
  <p>Is there a more elegant, more ruby-like way? (semicolons don't count :)</p>