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
Ridvan Yaman
Courses Plus Student 390 PointsNameError in Statusses#index
What is my false?
Showing C:/Sites/projects/bokbook/app/views/layouts/application.html.erb where line #15 raised:
undefined local variable or method `statuses_path' for #<#<Class:0x42c9e10>:0x35db5c8>
Extracted source (around line #15):
12: <div class="container">
13: <a href="#" class="brand"> Bokbook</a>
14: <ul class="nav">
15: <li><%= link_to "All Statuses", statuses_path %></li>
16: </div>
17: </div>
18: </div>
My Code:
<!DOCTYPE html>
<html>
<head>
<title>Bokbook</title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a href="#" class="brand"> Bokbook</a>
<ul class="nav">
<li><%= link_to "All Statuses", statuses_path %></li>
</div>
</div>
</div>
<div class="container">
<%= yield %>
</div>
</body>
</html>
1 Answer
Tomasz Foster
19,442 PointsDid you check your routes file to make sure you have defined the statuses path?