title: wrong number of arguments (0 for 2) - method error
body: <p>Why do i become such a error message ? 
  Here's my controller:</p>
  
  <pre><code>#app/controllers/dashboard_controller.rb
  def upvote(user, post_id)
    @user=user
    @user.posts.find(post_id).increment!(:votes)
    redirect_to action: "view"
  end
  </code></pre>
  
  <p>Here i use my function:</p>
  
  <pre><code>#app/views/dashboard/view.html.erb
  &lt;%=f.posts.find(i).votes%&gt;, &lt;%= link_to "+", upvote_dashboard_path(f,i) %&gt;
  </code></pre>