attr_accessible makes the id settable, you don't need to make it attr_accessible if you just need to use it.