Is there any functional difference in writing return render 'edit'
and render 'edit' and return
? Are both syntaxes safe to use?
The return render
syntax is slightly more concise, but the render and return
is advocated officially here Avoiding Double Render Errors.
return render
would return whatever value the render method return and render and return
would return a nil
from the controller method.