Parse properly the id which comes from standard rails form