0

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

ekostadinov
  • 6,880
  • 3
  • 29
  • 47
ElMerroPero
  • 59
  • 1
  • 7
  • 1
    Post your application.css file here Also to comment some rails code your need append hash although it is in html comment block like `<%#= stylesheet_link_tag “application”, :media => “all” %>` – Dipak Gupta Sep 12 '14 at 14:15
  • 1
    that's not commented... – sevenseacat Sep 12 '14 at 14:34
  • If you're trying to comment out the generated stylesheet that is how you do it. – CleoR Sep 12 '14 at 15:08
  • Its not comment/uncomment part. its the less error i am having problems with. and it points to <%#= stylesheet_link_tag “application”, :media => “all” %> this piece of code as being the issue – ElMerroPero Sep 12 '14 at 15:13
  • You need to post your stylesheet then. The error could be in your stylesheet or in how it processes everything into application.css. Remove your created style sheet and see if it processes everything else fine. If it doesn't then your stylesheet may not be the problem/only problem. – CleoR Sep 12 '14 at 16:56

2 Answers2

2

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” %> 
Dipak Gupta
  • 7,321
  • 1
  • 20
  • 32
0

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 %>
CleoR
  • 806
  • 6
  • 18