Support implicit generation of wrapping controllers.

*DO NOT MERGE*

Requires https://github.com/rails/rails/pull/11352