This is the sample on rails