javascript - Trying to add bootstrap to rails. Need to install nodejs? -


i following tutorial install bootstrap on rails application. i've been following tutorial http://www.gotealeaf.com/blog/integrating-rails-and-bootstrap-part-1

thought run error, when change application.css application.css.sass.

current execjs runtime does't support es5. please install node.js.   (in c:/users/danielh/desktop/rotairapp/rubydev/rotairapp/app/assets/stylesheets/application.css.sass) extracted source (around line #9): 6 7 8 9 10 11 12     </style>      <title>rotair</title>      <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>      <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>      <%= csrf_meta_tags %>    </head> 

the application css file looks

 @import "bootstrap-sprockets"  @import "bootstrap" 

do need install node.js?

you can use cdn too. putt cdn css file , js links , don't have install anything.

here link files. http://www.bootstrapcdn.com/


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -