title: Fine is incrementing everytime when i reload page in rails 6
body: <p>I want to add function of fine, which is user selects return date when he request book and if date exceeds return date then user gets a fine. But problem is everytime i reload page, fine automatically increases
  Here is my controller code:</p>
  <pre><code>def index
  @ownerships = current_user.ownerships
  @ownerships.each do |ownership|
    ownership = Ownership.find(ownership.id)
    if Time.now &gt;= ownership.return_date
      ownership.update(fine: ownership.fine +  100))
    else
      ownership.update(fine: 0)
    end
  end
  </code></pre>
  <p>end</p>