Rails 4 + bootstrap set up assets

前端 未结 8 1510
春和景丽
春和景丽 2021-02-04 06:53

I am trying to setup bootstrap on Rails4 using bootstrap-sass and I am getting this famous error:

Sprockets::FileNotFound - couldn         


        
相关标签:
8条回答
  • 2021-02-04 07:44

    add to Gemfile

    gem 'font-awesome-rails'

    do bundle install

    add to application.css

    *= require font-awesome

    and, restart rails server.

    0 讨论(0)
  • 2021-02-04 07:49

    i had the same issue :couldn't find file 'bootstrap-sprockets' with type 'application/javascript' The only solution was to comment off in the Gemfile gem 'sass-rails', '~> 5.0' and add instead gem 'sass-rails', '>= 3.2'

    hope this helps other members

    0 讨论(0)
提交回复
热议问题