Maybe use the [normalize-rails gem](https://github.com/markmcconachie/normalize-rails)?