title: How do I use content_for
body: <p>I'm trying to create a dynamic page title. Is more then just @project.title</p>
  
  <p>The project title, in the page title contains many elements, like the project name, the project category and the project city. </p>
  
  <p>I've tried this</p>
  
  <pre><code>&lt;%= content_for :page_title @project.name, @project.category, @project.city %&gt;
  
  &lt;%= content_for :meta_description, @project.description %&gt;
  </code></pre>
  
  <p>But I get an error like this one</p>
  
  <pre><code>syntax error, unexpected keyword_ensure, expecting ')'
  </code></pre>
  
  <p>I've also tried </p>
  
  <pre><code>&lt;%= content_for (:page_title @project.name, @project.category, @project.city) %&gt;
  </code></pre>
  
  <p>which resulted in the same error: <code>syntax error, unexpected keyword_ensure, expecting ')'</code></p>