try to only show last id. (otherwise not working in rails 3.2.12)