title: Rails - Find By with 2 fields?
body: <p>I have the following in a controller </p>
  
  <pre><code>def update
      @permission = Permission.find_by_user_id(params[:user_id])
  </code></pre>
  
  <p>But I want it to also find by another param, <code>project_id</code> </p>
  
  <p>How can I do something like this in Rails?</p>
  
  <pre><code>@permission = Permission.find_by_user_id_and_project_id(params[:user_id],params[:user_id])
  </code></pre>