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
Naomi FreemanTreehouse Guest Teacher
Link to profiles page
Good evening everyone,
Just trying to link to a profiles page.
The generated scaffold, on index, has a link to Show, which works. However, if I move that link to the top of the page, it stops working.
I want to link to a profiles page from the Nav bar. For example, right now it goes to /statuses/1 to show the Show page.
How do I make it link_to correctly in the nav bar to just land there? Because I can't just go /statuses/show. It's particularly to the User number.
Are you using a partial? Your navigation bar should be in your application.html.erb file. Can you post the code?