Credit to devdocs.io

rails 5.1