title: Why my form request is blackholed cakephp 2?
body: <p>I have 2 models : <em>Ad</em> and <em>Record</em>, <em>Ad</em> <strong>hasOne</strong> <em>Record</em> and <em>Record</em> <strong>belongsTo</strong> <em>Ad.</em>
  My add form and editing form are working, but if I use secrurity component, my request is blacked hole. Maybe I m not using best practice.
  Controller AdsController.php :</p>
  
  <pre><code>public function admin_edit($id = null){
      $this-&gt;Ad-&gt;id = $id;
      if ($this-&gt;request-&gt;is('get')){
          $this-&gt;request-&gt;data = $this-&gt;Ad-&gt;read();
      } else {
          if ($this-&gt;Ad-&gt;save($this-&gt;request-&gt;data)) {
              $this-&gt;Ad-&gt;Record-&gt;save($this-&gt;request-&gt;data);
              $this-&gt;Session-&gt;setFlash('Vos données ont étées mises à jour');
              $this-&gt;redirect(array('action' =&gt; 'admin_index'));
          }else {
              $this-&gt;Session-&gt;setFlash('Impossible d\'éditer l\'annonce !');
          }
  
      }
  }
  </code></pre>
  
  <p>here is my form admin_edit.ctp :</p>
  
  <pre><code>&lt;!-- Ads/admin_edit --&gt;
  &lt;?php
    /* Breadcrumb */
    $this-&gt;Html-&gt;addCrumb('Annonces', '/admin/ads');
    $this-&gt;Html-&gt;addCrumb('Edition annonce', '/admin/ads/edit');
  ?&gt;
  
  &lt;h1&gt;Editer une annonce&lt;/h1&gt;
  &lt;hr&gt;
  &lt;div class="row"&gt;
  &lt;div class="span6 pull-left"&gt;
  &lt;h3&gt;Annonce&lt;/h3&gt;
  &lt;?php
      echo $this-&gt;Form-&gt;create('Ad', array('action'=&gt;'edit'));
          echo $this-&gt;Form-&gt;input('name', array('label' =&gt; 'Nom de l\'annonce', 'error' =&gt; array('attributes' =&gt; array('wrap' =&gt; 'div', 'class' =&gt; 'alert alert-error'))));
          echo $this-&gt;Form-&gt;input('category',array('label'=&gt;'Définir si location ou vente','options'=&gt;array('location' =&gt;'location', 'vente' =&gt; 'vente'), 'empty' =&gt; 'choisir', 'error' =&gt; array('attributes' =&gt; array('wrap' =&gt; 'div', 'class' =&gt; 'alert alert-error'))));
          echo $this-&gt;Form-&gt;input('type', array('label' =&gt; 'Choisir le type de bien',
                                                'options' =&gt; array('appartement' =&gt; 'appartement', 'maison/villa' =&gt;'maison/villa', 'terrain' =&gt; 'terrain'),
                                                'empty' =&gt; 'choisir',
                                                'error' =&gt; array('attributes' =&gt; array('wrap' =&gt; 'div', 'class' =&gt; 'alert alert-error')
                                                )));
          echo $this-&gt;Form-&gt;input('room', array('label' =&gt; 'Nombre de pièces *indiquer un chiffre', 
                                                  'error' =&gt; array('attributes' =&gt; array('wrap' =&gt; 'div', 'class' =&gt; 'alert alert-error'))));
          echo $this-&gt;Form-&gt;input('country', array('label' =&gt; 'Le Pays',
                                                   'options' =&gt; array('France' =&gt; 'France', 'Espagne' =&gt; 'Espagne'),
                                                   'empty' =&gt; 'choisir',
                                                   'error' =&gt; array('attributes' =&gt; array('wrap' =&gt; 'div', 'class' =&gt; 'alert alert-error')
                                                  )));
          echo $this-&gt;Form-&gt;input('city', array('label' =&gt; 'Ville',
                                                'options' =&gt; array('Antibes' =&gt; 'Antibes', 'Beaulieu' =&gt; 'Beaulieu', 'Cagnes sur mer' =&gt; 'Cagnes sur mer', 'Cannes' =&gt; 'Cannes', 'Cap d\'Ail' =&gt; 'Cap d\'Ail', 'Eze' =&gt; 'Eze', 'Juan les Pins' =&gt; 'Juan les Pins', 'La Turbie' =&gt; 'La Turbie', 'Menton' =&gt; 'Menton', 'Nice' =&gt; 'Nice', 'Roquebrune Cap Martin' =&gt; 'Roquebrune Cap Martin', 'Saint Jean Cap Ferrat' =&gt; 'Saint Jean Cap Ferrat', 'Saint Laurent du Var' =&gt; 'Saint Laurent du Var', 'Saint Tropez et alentours' =&gt; 'Saint Tropez et alentours', 'Villefrance' =&gt; 'Villefrance', 'Villeneuve Loubet' =&gt; 'Villeneuve Loubet', 'Alicante' =&gt; 'Alicante', 'Altea' =&gt; 'Altea', 'Benidorm' =&gt; 'Benidorm', 'Calpe' =&gt; 'Calpe', 'Santa Pola' =&gt; 'Santa Pola', 'Villajoyosa' =&gt; 'Villajoyosa' ),
                                                'empty' =&gt; 'choisir'
                                              ));
          echo $this-&gt;Form-&gt;input('price', array('label' =&gt; 'Prix *indiquer un chiffre, exemple pour 300 000 euros, écrire 300000'));
          echo $this-&gt;Form-&gt;input('description', array('label' =&gt; 'Description'));
          echo $this-&gt;Form-&gt;input('picture', array('label' =&gt; 'Liens image', 'type' =&gt; 'file'));
  ?&gt;
  &lt;/div&gt;
  &lt;div class="span6 pull-right"&gt;
      &lt;h3&gt;Dossier lié à l'annonce (contacts du propriétaire, addresse du bien immobilier)&lt;/h3&gt;
      &lt;?php echo $this-&gt;Form-&gt;input('Record.address', array('label' =&gt; 'Addresse de l\'appartement')); ?&gt;
      &lt;?php echo $this-&gt;Form-&gt;input('Record.id', array('type' =&gt; 'hidden')); ?&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;?php /*echo $this-&gt;Form-&gt;button('Envoyer', array('type' =&gt; 'submit',
                                                  'class' =&gt; 'btn btn-primary'));*/ ?&gt;
  &lt;?php echo $this-&gt;Form-&gt;end('Valider'); ?&gt;
  </code></pre>
  
  <p>Thx for your help !</p>