Working on header and users in ruby