Forum: Ruby on Rails autoinc id field not treated as such

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
786aca6b4728622a57a2c34fb1c9f0cd?d=identicon&s=25 rbrant (Guest)
on 2005-11-15 18:12
(Received via mailing list)
new to rails...I generated scaffolding for a User and eveything seems
to work fine, except that my Id field, which is my primary key (set to
autoinc, not null) is being displayed on the add form as a text box,
which can't be right. I can add a value in ther and the record will
get inserted, but then on the listing page, I can see that the
record's id isn't making it in.  The link to edit looks like this:

http://127.0.0.1:3000/users/edit/

No record id appears at the end. I can add it and then get to that
record, but something is clearly horked up. I've tried detroying the
table and the recreating but I'm getting the same results. Any ideas?
I've aslo run the scaffold command again. I'm running mysql 4.1

thanks,
rich
This topic is locked and can not be replied to.