Working on rails related bug