http://railstutorial.jp/chapters/sign-in-sign-out?version=4.0