full angular and ruby example