Review

You probably want to do something other than just render edit here. If you get a "destroy" for a dog that is not the current user's, it suggests you have a logic error somewhere, or a malicious user is trying an attack of some sort. It's probably worth logging that fact at least. Then maybe redirect to root or an error page that gives minimal information like "something went wrong" to the end user.