Answer the question
In order to leave comments, you need to log in
Why is collaps not working in bootstrap?
There is this simple code:
%nav{role:'navigation', class:'navbar navbar-inverse'}
%div{class: 'container'}
%div{class: 'navbar-header'}
= button_tag(type: 'button', class: 'navbar-toggle collapsed',
data: { target: '#navbarCollapse', toggle: 'collapse' }) do
%span{class: 'sr-only'}Toggle navigation
%span{class: 'icon-bar'}
%span{class: 'icon-bar'}
%span{class: 'icon-bar'}
= link_to 'Some title', '#', class: 'navbar-brand'
%div{id: 'navbarCollapse', class: 'navbar-collapse collapse'}
%ul{class: 'nav navbar-nav'}
%li= link_to 'Help', '#'
%li= link_to 'About Us', '#'
%li= link_to 'Some text 1', '#'
%li= link_to 'Some text 2', '#'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question