"return render" vs "render ... and return" in Rails
<p>Is there any functional difference in writing <code>return render 'edit'</code> and <code>render 'edit' and return</code>? Are both syntaxes safe to use?</p>

<p>The <code>return render</code> syntax is slightly more concise, but the <code>render and return</code> is advocated officially here <a href="http://guides.rubyonrails.org/layouts_and_rendering.html#avoiding-double-render-errors" rel="noreferrer">Avoiding Double Render Errors</a>.</p>

<p><code>return render</code> would return whatever value the render method return and <code>render and return</code> would return a <code>nil</code> from the controller method.</p>