Реагирование панели навигации rails5-bootstrap-sass не работает

Почему отзывчивость панели навигации не работает на Rails 5. Я использую bootstrap-sass драгоценный камень. Я уже искал в Интернете и пробовал возможные решения, но мне не повезло.

Вот мой /app/assets/stylesheets/application.css.scss

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 * 
 *
 */

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

Любая помощь высоко ценится!

Спасибо,


person ggcodes    schedule 03.08.2016    source источник
comment
ты добавил //= require bootstrap-sprockets в свой application.js too?   -  person mrvncaragay    schedule 03.08.2016
comment
нет, вместо этого я добавил //= require bootstrap   -  person ggcodes    schedule 03.08.2016
comment
вам нужно только //= require bootstrap-sprockets в application.js   -  person mrvncaragay    schedule 03.08.2016
comment
Меняю уже с require bootstrap на require bootstrap-sprockets все равно не получается.   -  person ggcodes    schedule 03.08.2016


Ответы (1)


У меня была такая же проблема раньше. Я решил это, добавив эти две строки в head из application.html.erb

<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
person Touqeer    schedule 29.07.2017