Actionview::Template::Error (Variable @Fontawesomeeotpath_Iefix Is Undefined)

ActionView::Template::Error (variable @fontAwesomeEotPath_iefix is undefined)

Because of bootstrap update I will need to update bootstrap's assets:

rails g bootstrap:install -f

There are a new line in assets:

+@fontAwesomeEotPath_iefix: asset-path("fontawesome-webfont.eot#iefix");

variable @fontAwesomeEotPath_iefix is undefined

Notice that your bootstrap_and_overrides.css.less doesn't have the variable the error is complaining about.

Add the following line with the other @fontAwesome variables and you should be good.

@fontAwesomeEotPath_iefix: asset-path("fontawesome-webfont.eot#iefix");

Or update your twitter bootstrap install by running rails g bootstrap:install -f.

fontawesome.less' wasn't found

In app/assets/stylesheets/bootstrap_and_overrides.css.less I changed:

// Font Awesome
@import "fontawesome;

to:

// Font Awesome
@import "fontawesome/font-awesome";

and it worked.



Related Topics



Leave a reply



Submit