title: Rails - TypeError: nil is not a symbol nor a string, when updating
body: <p>I'm trying to update an attribute. It's a boolean with a default of false. In my method I make a query to find the right user. then I try to update that user by flipping the <code>owner boolean</code> to true. It's a really strange error I'm getting because it's updating the method but it also sending out this error <code>TypeError: nil is not a symbol nor a string</code></p>
  <p>I'm just wondering what I'm doing wrong here.</p>
  <h2>Controller</h2>
  <pre><code>def update
    membership = current_account.account_memberships.find_by(user_id: params[:id])
    membership.update(owner: true)
  end
  </code></pre>
  <h2>HTML</h2>
  <pre><code>&lt;%= link_to &quot;Owner&quot;, account_membership_path(user), {
    class: &quot;icon icon-owner-upgrade&quot;,
    method: :patch,
  } %&gt;
  </code></pre>