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

Route Helpers code challenge

The challenge asks me to "Update this view's link_to to use the newly created named :feed route" and the view is <ul class="nav"> <li><%= link_to "News Feed", "#change-this-to-named-route" %></li> </ul>

What do I put for the named route? I've tried "feed_path" as it says to do in the videos and that doesn't work.

4 Answers

Hi Ashley... Do you still have feed_path in double quotes? Remove them and try again. You are on the right path (excuse the pun)

Hey Ashley!

Check your config/routes file and make sure that everything is matched up right. You should have this somewhere in that file:

resources :statuses
get 'feed', to: 'statuses#index', as: :feed

If that still doesn't work, post the error message that you're getting!

Thank you so much Dan! I just had remove the double quotes.

:)