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 trialCallum Short
1,788 PointsError on project files
i download project files, install bundle, rake the db and still get this error:
[2] is not a symbol
heres the code
<li><%= link_to "All Statuses", feed_path %></li>
16: </ul> 17: <ul class="nav pull-right"> 18: <% if user_signed_in? %> 19: <li><%= link_to current_user.full_name, edit_user_registration_path %></li> 20: <li><%= link_to "Log Out", logout_path %><li> 21: <% else %>
2 Answers
Binary Soul
4,592 Pointshave you tryed to create the DB first?
rake db:create
if this works, do a db:migrate again.
sitkibagdat
27,311 PointsYou should indicate which user you want to use with edit_user_registration_path helper, like so: edit_user_registration_path(current_user)
<% if user_signed_in? %>
<%= link_to current_user.full_name, edit_user_registration_path(current_user) %>
<%= link_to "Log Out", logout_path %>
<% else %>