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
Make sure that it is lowercase "id" not "Id" David> -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Rich Brant > Sent: Tuesday, November 15, 2005 12:10 PM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails] autoinc id field not treated as such > > 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 > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails=============================================================================CONFIDENTIALITY NOTICE: The information in this electronic message (including any attachments) is confidential and may be privileged or proprietary. If you are not the intended recipient, any dissemination, disclosure, copying, downloading, or other use of the information is prohibited and unauthorized, and may be unlawful, regardless of address or routing. If you are not the intended recipient, please inform the sender immediately and permanently delete and destroy the original and any copies of this message, including any attachments. ==============================================================================
glad i asked. that was it. thanks. On 11/15/05, David Chilton <david_chilton-Yt2XQmYAGVYAvxtiuMwx3w@public.gmane.org> wrote:> Make sure that it is lowercase "id" not "Id" > > David > > > > -----Original Message----- > > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- > > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Rich Brant > > Sent: Tuesday, November 15, 2005 12:10 PM > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Subject: [Rails] autoinc id field not treated as such > > > > 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 > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > =============================================================================> CONFIDENTIALITY NOTICE: The information in this electronic message (including any attachments) is confidential and may be privileged or proprietary. If you are not the intended recipient, any dissemination, disclosure, copying, downloading, or other use of the information is prohibited and unauthorized, and may be unlawful, regardless of address or routing. If you are not the intended recipient, please inform the sender immediately and permanently delete and destroy the original and any copies of this message, including any attachments. > =============================================================================> _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- http://brantinteractive.com rbrant-To7aG29cuAKKf2Id4j40wVaTQe2KTcn/@public.gmane.org 4034 skippack pike v. 267.640.2195 f. 215.689.1454