title: Rails Precompilation: Why a LESS.ERB file doesn't work?
body: <p>I'm trying to use Rails Asset Pipeline to work with a less.erb file.</p>
  
  <p>Before I used LESS, I used SCSS. With SCSS I could have SCSS.ERB files. Everything worked perfectly. </p>
  
  <p>Unfortanately, the UI Framework that I want to use (Semantic-UI) doesn't support SCSS, only LESS.</p>
  
  <p>So I changed: </p>
  
  <p>Added these gems:</p>
  
  <pre><code>gem 'less-rails', '~&gt; 2.7.0'
  gem 'therubyracer', '~&gt; 0.12.2'
  gem 'less-rails-semantic_ui', '~&gt; 2.0.7'
  </code></pre>
  
  <p>Then I add _colors.less.erb file to my asset pipeline (in assets/stylesheets/core/_colors.less.erb), with this content:</p>
  
  <pre><code>@import "variables/_colors.less";
  
  &lt;% colors_list = %w(primary secondary gray green red blue yellow purple orange brown violet pink olive teal) %&gt;
  
  
  /*--------------------
     Background Colors
  ---------------------*/
  
  &lt;% colors_list.each do |color| %&gt;
    .bg-color-&lt;%=color%&gt;         { background-color: @color-&lt;%=color%&gt;; }
    .bg-color-&lt;%=color%&gt;-darker  { background-color: @color-&lt;%=color%&gt;-darker; }
    .bg-color-&lt;%=color%&gt;-dark    { background-color: @color-&lt;%=color%&gt;-dark; }
    .bg-color-&lt;%=color%&gt;-light   { background-color: @color-&lt;%=color%&gt;-light; }
    .bg-color-&lt;%=color%&gt;-lighter { background-color: @color-&lt;%=color%&gt;-lighter; }
  &lt;% end %&gt;
  
  .bg-color-black         { background-color: @color-black; }
  .bg-color-white         { background-color: @color-white; }
  .bg-color-gray-darkest  { background-color: @color-gray-darkest; }
  .bg-color-gray-lightest { background-color: @color-gray-lightest; }
  </code></pre>
  
  <p>The problem here is that, unlike scss.erb files, these less.erb files are not precompiled from erb to less.</p>
  
  <p>It returns the error: 'core/_colors.less' wasn't found</p>
  
  <p><strong>Does anyone know why this happens?</strong></p>