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
Edward Imbat
5,350 PointsDesigning a url badge
Need with adding a new route that will route a GET request to "/feed" to the StatusesController's index action
6 Answers
Andrew Merrick
20,151 PointsI had the same problem and I think the phrasing of the directions may be the culprit. You may want to rephrase the directions to say:
"Add a new route that will route a GET request to "/feed" to the statuses controller's index action"
I kept on trying to use StatusesController as the controller and it wouldn't let me pass. I finally got it to work :)
Jason Seifer
Treehouse Guest TeacherHey Eddie Imbat I'm not sure I understand the question, can you possibly rephrase it a little bit?
Edward Imbat
5,350 PointsThis is the challenge prompt, and I'm not sure what to do:
Add a new route that will route a GET request to "/feed" to the StatusesController's index action
Daniel Anonuevo
4,983 PointsI'm having the same problem too with the code challenge.
Jason Seifer
Treehouse Guest TeacherHey guys, double check this video and try again:
That goes in to how to complete the challenge. Let me know if you still have trouble.
james white
78,399 PointsReferring the video is totally bogus because:
1.) If you look at the wrong time index on the video you end up trying to use:
statsus#index
instead of :
statuses#index
2.) In the video it uses 'feed', not '/feed'
I kept trying different variations (with nothing to give me a clue for debugging except that stupid Bummer message with no error code or output error code) for over an hour before I (semi-randomly in desperation) hit on:
get '/feed', to: "statuses#index", as: :feed
I also forgot the colon (to instead of to:)
This challenge was brutal (and a waste of time of a very minor bit of tech trivia/phrasing).