Refactor RelationshipsController itself to use respond_to, rather than its actions.