Sample from rails by tutorial