'<%= stylesheet_link_tag "application", :media => "all" %> <----- This piece of code is not allowing my ROR application to load locally

After installing Twitter bootstrap, I ran 'Rails server' and now the application will not load.

This is the error

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

And highlighted in the screen is this line

<%= stylesheet_link_tag "application", :media => "all" %>

Does anyone have any suggestions as to where I may have gone wrong?



Solution 1:[1]

To temporarily get around the problem and remove the error your could create an empty file at

C:/Sites/cardMS/app/assets/stylesheets/ 

called

/bootstrap_and_overrides.css.less

However you should look further for the root cause which might be that you have not correctly followed the process that copies the bootstrap files as indicated by colinm

Solution 2:[2]

Use a bash like shell like cygwin (as I'm noticing that you seem to be on windows):

Install grunt-cli globally with

npm install -g grunt-cli.

Navigate to the root /bootstrap/ directory, then run npm install. npm will look at the package.json file and automatically install the necessary local dependencies listed there.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 TylerH
Solution 2 Michael Durrant