Cannot insert data into mysql

When I am going to create a new product Item into my depot application
got the following error:

Mysql::Error: #23000Duplicate entry ‘0’ for key 1: INSERT INTO
products (image_url, date_available, price, title,
description) VALUES(‘’,
‘2010-08-27 12:23:00’, ‘90.0’, ‘jjhjh’, ‘hgjgjhjkhjhkhkkkkkhkhkhkh’)

I am new to ruby on rails and following Agile Web D. with

Please help me about the problem.


the id is not auto-increment but unique

2010/8/27 Irfan A. [email protected]

yap I have solved that problem it was not set to auto increment. Thanks

On 28 August 2010 00:25, Sergio S. [email protected] wrote:

To unsubscribe from this group, send email to
To unsubscribe from this group, send email to
[email protected][email protected]
For more options, visit this group at

Irfan A. Rizvi

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs