Earlier quoted context omitted.
The last time I used Rails (2009), the way RESTful URLs are set up encouraged this pattern. It's simple enough to restrict access to the user in question, but it is (or was) easy to overlook.
i agree - i cant think of a reason why the user id would ever be in the account url
That in itself is not a security problem, but having no access control obviously is.