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

Designing 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

I 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
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Eddie Imbat I'm not sure I understand the question, can you possibly rephrase it a little bit?

This 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

I'm having the same problem too with the code challenge.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey guys, double check this video and try again:

http://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/designing-urls/creating-custom-routes

That goes in to how to complete the challenge. Let me know if you still have trouble.

Referring 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).