dimanche 8 mai 2016

Voltrb: Unable to save attribute through checkbox

I'm trying out a tutorial for Volt, a ruby web framework, which I had some issue.

When I try to bind the checkbox with a todo model,

<td><input type="checkbox" checked="" /></td>

and when I clicked it, I got the following message

[ERROR] task StoreTasks#save in 6.497ms
with args: "todos", ["todos", "[]"], {"label"=>"test", "id"=>"c2519619750f7a73a2438a2f", "completed"=>true}

{:error=>"E11000 duplicate key error collection: todo_app_development.todos index: _id_ dup key: { : \"c2519619750f7a73a2438a2f\" } (11000)"}

I've followed the tutorial [http://ift.tt/1WiknYw ]

I've uploaded my src here. http://ift.tt/21KNh2P

Any advise is much appreciated. Thanks.

Aucun commentaire:

Enregistrer un commentaire