Traning (https://github.com/RailsApps/rails3-bootstrap-devise-cancan).