This is the rails code with bootstrap