Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
ali yeysides
1,885 PointsBootstrap Dropdown tabs help
Here is the following code I have:
<!DOCTYPE html>
<html>
<div class="container">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="css/boostrap.css">
<h1>Langhorne Coffee House</h1>
<title>LCH</title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<div id="nav">
<ul class="nav nav-tabs">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Menus
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="#">Day Menu</a>
</li>
</ul>
</li>
<li><a href="#">Our Story</a></li>
<li><a href="#">Calander</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<%= yield %>
</div>
</body>
</html>
It is rendered perfectly fine up until you actually click the tab, in which no new menu drops down.
2 Answers
James Barnett
39,199 PointsDo you have a link to the site, that this is happening on, so we can see the bigger picture?
ali yeysides
1,885 PointsI just launched a rails server to mess with some features so I don't have a link for you.