I'm in the process of getting Twitter-rails-bootstrap GEM up and running on my Windows OS.

The load error is below:

    cannot load such file -- less
       (in C:/Sites/cardMS/app/assets/stylesheets/bootstrap_and_overrides.css.less)

Thanks

2

There are 2 best solutions below

0
On

To comment some rails code you need append hash although it is in html comment block.

So change

<%= stylesheet_link_tag “application”, :media => “all” %> 

to

<%#= stylesheet_link_tag “application”, :media => “all” %> 
0
On

I just tested Nitin's answer in a sample app and looked it up. Indeed all you need to do to comment any erb is place a hash sign after the opening '<%' tag. I suppose the erb parser doesn't care about normal ruby comments as those too can have dynamic parts. This indeed happens when you generate a scaffold and the commented route "#get /posts/1" shows the correct resource. Rails generators do support this feature with templates.

<%= not commented blah %>

  becomes

<%#= commented blah %>