Server side and Client Side examples of drails