In the opening of the book of Ruth, we saw Elimelech, whose name means "God is king," make a choice to do what was right in his own eyes to save his family during a time of famine. His son's name means weak, so he was literally trying to do what he thought was the right thing to do in spite of God's word to His physical people, not to leave the land but to trust Him. In the end, there was the deaths within 10 years of him and his sons.
But in God's awesome sovereignty He brought someone from outside those people whom He had blessed with the truth of His Word, and she submitted to His every word as she learned to do it in outgoing concern for those whom she did not even know. God was indeed her King. And she was proclaimed by Boaz, a type of Christ, his eshet chayil, the wife of virtue.