Moved view from rails to angular template