Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6370997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:00:11+00:00 2026-05-25T01:00:11+00:00

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

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:00:12+00:00Added an answer on May 25, 2026 at 1:00 am

    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

    var text = this.model.get('content');
    

    the close function

    // Close the `"editing"` mode, saving changes to the todo.
        close: function() {
          this.model.save({content: this.input.val()});
          $(this.el).removeClass("editing");
        },
    

    and the createOnEnter function

    // create new **Todo** model persisting it to *localStorage*.
        createOnEnter: function(e) {
          var text = this.input.val();
          if (!text || e.keyCode != 13) return;
          Todos.create({content: text});
          this.input.val('');
        },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After following these steps: http://developers.facebook.com/docs/mobile/android/build/ I find that everything goes well, but when I
So I'm following these instructions: http://mark-kirby.co.uk/2008/using-git-and-github-on-os-x , and so far I've cloned the project
I am building a Httphandler following these instructions here It manipulates HTTP POST and
Following these instructions: http://neogregious.blogspot.com/2011/04/migrating-app-to-high-replication.html I have managed to migrate to the high replication datastore
I am following these instructions: http://blog.mackerron.com/2009/05/19/paste-unformatted-keyboard-shortcut-office-2008-mac/ Worked fine in Word. But when i paste
I am trying to install SciPy following these instructions: http://www.scipy.org/Download And constantly getting error
I am following these instructions to attempt to build V8 on Mac Lion: http://code.google.com/apis/v8/build.html
I'm installing node.js on Ubuntu as per these instructions ( http://nodenode.com/post/1197688151/installing-node-js-on-ubuntu-screencast-tutorial ) and I'm
I made an app following these instructions http://www.ifans.com/forums/showthread.php?t=132024 And was great, but now, Now,
I have created a WCF Client with the SVCUTIL.exe following these instructions : http://msdn.microsoft.com/en-us/library/ms733133.aspx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.