Basic webmail application in rails