Welcome to the Treehouse Community
Looking to learn something new?
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.