title: Does not equal conditional
body: <p>I want to have a where clause with an equal and does not equal condition:</p>
  
  <pre><code>@user = User.where(:user_id =&gt; current_user.id, :author_id != current_user.id).nil? ? (render :something) : (render :somethingelse)
  </code></pre>
  
  <p>The above does not work:</p>
  
  <blockquote>
    <p>syntax error, unexpected ')',
    expecting tASSOC ...d, :user_id !=
    current_user.id).nil? ? (render
    :index) : (re...</p>
  </blockquote>
  
  <p>If I change the second condition from <code>!=</code> to <code>=&gt;</code> it will work, however.</p>
  
  <p>How do I have both conditions in one where clase? Thank you</p>