ActiveRecord ids differ outside of rails for rails data table?

Say, for a record with label ‘Home’, inside Rails I get an id of 1, and
outside I get an id of -6… and a different number each time? What
is going on here? I am still getting the ‘Home’ label, and other fields
are correct, but I get a different id every time…??? What gives?
How do I get my regular id?

Xeno C. wrote:

Say, for a record with label ‘Home’, inside Rails I get an id of 1, and
outside I get an id of -6… and a different number each time? What
is going on here? I am still getting the ‘Home’ label, and other fields
are correct, but I get a different id every time…??? What gives? How
do I get my regular id?

Nevermind. I was using the .id on the array object rather than the
record object. (he slinks away…)