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
Ashley Schneider
7,627 PointsRoute 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
Dan Solo
2,599 PointsHi Ashley... Do you still have feed_path in double quotes? Remove them and try again. You are on the right path (excuse the pun)
Zander Perry
2,227 PointsHey 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!
Ashley Schneider
7,627 PointsThank you so much Dan! I just had remove the double quotes.
Dan Solo
2,599 Points:)