And as for works of the Law done for boasting, Jesus provides a fine example in the Parable of the Pharisee and the Tax Collector in
Luke 18:9-14. That parable illustrates the sort of "works" (of the Law) done "for boasting" that do not save a person. And those are the "works" that Ephesians 8 is talking about.