This sample app illustrate the principal of the authentication from scratch with ruby on rails (rails 4.0.4 & ruby 2.0.0p353) in a very basic manner, with tree actions Sign up, Sign in and Sign out.