Following these instructions
http://robertogds.com/post/3324511589/howto-backbone-js-using-rails-3
The issue/error is that the content is never saved to the db. Using Firebug it appears that the POST json request is incorrect:
content
“empty todo…”
done
false
text
“test”
Basically, the backbone.js event fires a json update that takes the input data (“test”) and creates a new model attribute “text” instead of updating the “content” data attribute…
Any thoughts?
It appears that the author of that post forgot a few steps. The todos.js file needed to include some changes to make sure the :text variable (in the backbone.js todo example) was changed to :content
for example the setText function
the close function
and the createOnEnter function