Generate User

rails g scaffold User name password:digest
Generate Role

rails g model Role title
Set role
Set authorize

rails g controller Sessions new create destroy