And, you were taught correctly.  It began as a state's right issue.  Just like the U.S. broke off from British rule, the southern states felt they were not being represented by the "Yankee" gov't up north and wished to take governing into their own hands.  Only later did the slavery issue come into play.  But just because one Confederate stated that didn't make it so.