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

Ruby Build a Simple Ruby on Rails Application Building the Profile Page Testing the Profile Name

Error 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
Binary Soul
4,592 Points

have you tryed to create the DB first?

rake db:create

if this works, do a db:migrate again.

You 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 %>