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
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'.
Jason SeiferTreehouse Guest Teacher
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?
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.