title: ISSUE Cakephp 2.2 - Jquery Ajax Js->link save multiple entry id's on same page
body: <p>Apologies if this question has been answered somewhere, I have tried to find it but to no avail</p>
  
  <p>Cakephp is normally my friend, but it is driving me nuts right now. I am trying to create the option to vote an entry up on the same page where many other entries exist. I have done this a million times in Cake 1.3</p>
  
  <p><strong>Issue:</strong>
  If I have 10 entries on a page (wrapped in unique divs), I can only 'score' the first entry, even though the entry_id is received correctly in the controller (FireBug) and debugging shows that $this->request->data is correct.Nevertheless Cake only saves 'score' for the first entry on the page and does NOT show any error message for the scores of other entries after clicking the link. </p>
  
  <p>The UpdateALL action goes correct for ALL entries, only the SAVE action fails.</p>
  
  <p><strong>Question:</strong> Why does Cake not save scores for all entries on the page if I click the + link. Again, no error messages are thrown. </p>
  
  <p>Controller:</p>
  
  <pre><code>public function score($id = null)
  {
      if ($this-&gt;Auth-&gt;user('id')) {
          if ($this-&gt;Entry-&gt;updateAll(array('Entry.score' =&gt; 'Entry.score+1'), array('Entry.id' =&gt; $id))) {
              $this-&gt;Entry-&gt;Score-&gt;create();
              $this-&gt;request-&gt;data['Score']['entry_id'] = $id;
              $this-&gt;request-&gt;data['Score']['user_id'] = $this-&gt;Auth-&gt;user('id');
              if ($this-&gt;Entry-&gt;Score-&gt;save($this-&gt;request-&gt;data)) {
                  $total_scored = $this-&gt;Entry-&gt;find('first', array('conditions' =&gt; array('Entry.id' =&gt; $id)));
                  $this-&gt;Entry-&gt;contain();
                  $this-&gt;set('total_scored', $total_scored);
                  if ($this-&gt;request-&gt;is('ajax')) {
                      $this-&gt;render('_scored', 'ajax');
                  } else {
                      $this-&gt;redirect(array('action' =&gt; 'index'));
  
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code> &lt;div class="scoreButton-&lt;?php echo $entry['Entry']['id'];?&gt;"&gt;
   &lt;?php if (((AuthComponent::user('id')) &amp;&amp; ($entry['Entry']['user_id'] !== AuthComponent::user('id')))): ?&gt;
              &lt;p class="monster l20 t25 hover"&gt;&lt;?php echo $this-&gt;Js-&gt;link('+','/entries/score/' . $entry['Entry']['id'] . '', array('update' =&gt; '.scored-' . $entry['Entry']['id'] . '', 'complete' =&gt; $this-&gt;Js-&gt;get('.scoreButton-' . $entry['Entry']['id'] . '')-&gt;effect('hide'))); ?&gt;
              &lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="scored-&lt;?php echo $entry['Entry']['id'];?&gt;"&gt; &lt;/div&gt;
  
          &lt;?php endif;?&gt;
          &lt;?php if (!AuthComponent::user('id')): ?&gt;
          &lt;p class="monster grey l20 t25"&gt;+&lt;/p&gt;
          &lt;?php endif;?&gt;
  </code></pre>