fixes edit, update actions for controllers with nested resources