Hinesh Patel Hinesh Patel - 7 months ago 81
Ruby Question

Hamburger Icon bootstrap-sass gem

I have managed to a collapsable menu, but I can't get the hamburger icon to show, here is my application.html.haml code:

%title "Log My Workout"
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1"}
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
%nav.navbar.navbar-default{role: "navigation"}
%button.navbar-toggle{"data-target" => ".navbar-ex1-collapse", "data-toggle" => "collapse","aria-expanded" => "false"}
%span.sr-only Toggle navigation
= link_to "Login", new_user_path

= yield

Ren Ren

Not an expert in Haml, but it looks like your %span.icon-bar rows should be indented beneath the button tag.