title: Select optional command if Record not found
body: <p>In rails i am trying to achieve something like :</p>
  
  <p><code>@user = User.find(params[:id]) || current_user</code></p>
  
  <p>ie: if <code>User.find(params[:id])</code> doesn't find an existing record i want the <code>@user</code> to store the <code>current_user</code></p>
  
  <p>I think this might rather be a simple thing. But i just started off with ruby on rails.
  Thanks in advance.</p>