title: How to style a css on the head tag using slim-rails gem
body: <p>I'm using the <code>gem "slim-rails"</code> and I need to put on the file <code>application.html.slim</code> inside the <code>head</code> tag a style css like this:</p>
  
  <pre><code>&lt;style&gt;
      &lt;% State.all.each do |state| %&gt;
        .state-&lt;%= state.name.parameterize %&gt; {
          background-color: &lt;%= state.color %&gt;;
        }
      &lt;% end %&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>I was trying in this way:</p>
  
  <pre><code>  style
        - State.all.each do |state|
          .state-
            = "#{state.name.parameterize}" {
                background-color: = "#{state.color}";
              }
  </code></pre>
  
  <p>But was unsuccessfully. the error:</p>
  
  <pre><code>Malformed indentation
    /Users/romenigld/ror_workspace/projects/news_city/app/views/layouts/application.html.slim, Line 20, Column 12
      }
      ^
  </code></pre>
  
  <p>It has a way for this using helpers?</p>