Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Naomi Freeman
Naomi Freeman
Treehouse 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.

Any thoughts?

1 Answer

Are you using a partial? Your navigation bar should be in your application.html.erb file. Can you post the code?