Sample and tutorial for devise module for rails