title: Cakephp validate function not working
body: <p>here is my model --></p>
  
  <pre><code>&lt;?php 
  class Post extends AppModel {
   public $validate = array(
          'title' =&gt; array(
  
                  'rule'     =&gt; 'alphaNumeric',
                  'required' =&gt; true,
                  'message'  =&gt; 'Alphabets and numbers only'
          ),
          'body' =&gt; array(
              'rule' =&gt; 'notEmpty'
          )
      );
  
  
  }
  
  
  ?&gt;
  </code></pre>
  
  <p>controller --></p>
  
  <pre><code>public function add() {
          if ($this-&gt;request-&gt;is('post')) {
              $this-&gt;Post-&gt;create();
              if ($this-&gt;Post-&gt;save($this-&gt;request-&gt;data)) {
                  $this-&gt;Session-&gt;setFlash('Your post has been saved.');
                  $this-&gt;redirect(array('action' =&gt; 'index'));
              } else {
                  $this-&gt;Session-&gt;setFlash('Unable to add your post.');
              }
          }
      }
  </code></pre>
  
  <p>and view --></p>
  
  <pre><code>&lt;h1&gt;Add Post&lt;/h1&gt;
  &lt;?php
  echo $this-&gt;Form-&gt;create('Post');
  echo $this-&gt;Form-&gt;input('title');
  echo $this-&gt;Form-&gt;input('body', array('rows' =&gt; '3'));
  echo $this-&gt;Form-&gt;end('Save Post');
  ?&gt;
  </code></pre>
  
  <p>How can i get this to work . 
  I followed along with cakephp book they have provided at cakephp.org, did exactly the same whatever was mentioned there, then also couldnt get it right</p>