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.

General Discussion

Building Social Features in Rails Error

I'm not sure if this error should be occurring or not, as I may have misunderstood the video, but I'm getting an error when trying to edit another users status.

Firstly, should we be able to do that at this stage? And secondly, should I be getting an error because we haven't 'fixed' it yet?

Here's the error:

Couldn't find Status with id=1 [WHERE "statuses"."user_id"      = 2]

Which I'm assuming is saying 'where is your own status, this one has another user's id'.

3 Answers

Jason Seifer
Jason Seifer
Treehouse Guest Teacher

Hey Tom,

You're correct -- that's why you're getting the error. It's hard to say based on this error where you are in the code, though. What stage are you on and what's the exact question?

Thanks, Jason.

I can't remember where I was at when I posted this. However, I've since finished the course and I still get the same thing. I guess the question is; is that normal? I don't recall covering anything which restricted the edit option to logged-in users on their own statuses.

13,877 Points

Hi Tom, was this ever solved? I'm having the same issue.