title: rails controller.controller_name empty
body: <p>I try to define my HTML body class (in application.html.erb), using the current controller name.</p>
  
  <p>This way : </p>
  
  <pre><code>&lt;body class='&lt;% controller.controller_name %&gt;'&gt;
  </code></pre>
  
  <p>But I always have an empty body class</p>
  
  <p>Generated HTML : </p>
  
  <pre><code>&lt;body class=""&gt;
  </code></pre>
  
  <p>Why is controller.controller_name empty in application ? Or is there another way to proceed?</p>
  
  <p>I used rails 3.2.13.</p>