Closed ghost closed 12 years ago
Solution:
In Application.scala, line 100
replace ComputerDAO.insert(computer) by ComputerDAO.insert(computer.copy(id = new ObjectId()))
Thanks for the solution! Want to give at stab at sending a pull request or should I just fix it myself?
Not sure why this happends though. And I think perhaps that this should be moved to the fromForm method in the Computer object. Will give a stab at it later today after i finish #1 and clear up some time.
After the first start, we can only add one new computer.
When adding a second computer, there no error message, but the new computer is never saved in mongodb.
After restart of play you can add again exactly one more computer.
Modifications work fine.