When I am going to create a new product Item into my depot application I got the following error: Mysql::Error: #23000Duplicate entry ''0'' for key 1: INSERT INTO products (`image_url`, `date_available`, `price`, `title`, `description`) VALUES(''http://www.facebook.com/Meghkabbo.png'', ''2010-08-27 12:23:00'', ''90.0'', ''jjhjh'', ''hgjgjhjkhjhkhkkkkkhkhkhkh'') I am new to ruby on rails and following Agile Web Development with Rails. Please help me about the problem. -- Thanks Irfan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
the id is not auto-increment but unique 2010/8/27 Irfan Ahmed <irfandhk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> When I am going to create a new product Item into my depot application I > got the following error: > > Mysql::Error: #23000Duplicate entry ''0'' for key 1: INSERT INTO products (`image_url`, `date_available`, `price`, `title`, `description`) VALUES(''http://www.facebook.com/Meghkabbo.png'', ''2010-08-27 12:23:00'', ''90.0'', ''jjhjh'', ''hgjgjhjkhjhkhkkkkkhkhkhkh'') > > I am new to ruby on rails and following Agile Web Development with Rails. > > Please help me about the problem. > > -- > Thanks > Irfan > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
yap I have solved that problem it was not set to auto increment. Thanks dear:) On 28 August 2010 00:25, Sergio Sergio <sergio.sprite-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> the id is not auto-increment but unique > > 2010/8/27 Irfan Ahmed <irfandhk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> When I am going to create a new product Item into my depot application I >> got the following error: >> >> Mysql::Error: #23000Duplicate entry ''0'' for key 1: INSERT INTO products (`image_url`, `date_available`, `price`, `title`, `description`) VALUES(''http://www.facebook.com/Meghkabbo.png'', ''2010-08-27 12:23:00'', ''90.0'', ''jjhjh'', ''hgjgjhjkhjhkhkkkkkhkhkhkh'') >> >> I am new to ruby on rails and following Agile Web Development with Rails. >> >> Please help me about the problem. >> >> -- >> Thanks >> Irfan >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- Irfan Ahmed Rizvi http://www.creativemake.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.