title: symfony: question about routes and url_for()
body: <p>I have this route:</p>
  
  <pre><code>category_set_representative_image:
    url:     /categoria-settare-immaggine-rappresentativa
    param:   { module: category_new, action: setRepresentativeImage }
    class:   sfDoctrineRoute
    options: { model: Category, type: object }
  </code></pre>
  
  <p>and a link associated to this:</p>
  
  <pre><code>url_for('category_set_representative_image', array('sf_subject' =&gt; $category))
  </code></pre>
  
  <p>When I click the link I get:</p>
  
  <blockquote>
    <p>sfError404Exception: Action
    &quot;categoriasettareimmagginerappresentativa/index&quot; does not
    exist.</p>
  </blockquote>
  
  <p>Any idea?</p>
  
  <p><strong>EDIT</strong> after the answer of Flask:</p>
  
  <p>This is my code, no problems if I call the same <code>url_for()</code> out of javascript tags.</p>
  
  <pre><code>&lt;script&gt;
      $.post('&lt;?php echo url_for('category_set_representative_image', array('sf_subject' =&gt; $category)) ?&gt;',
             function(){
  
               alert("fadsf");
             }
      );
  &lt;/script&gt;
  </code></pre>
  
  <p>sf 1.4</p>
  
  <p>Javi</p>