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 8531307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:27:15+00:00 2026-06-11T09:27:15+00:00

Longtime Rails Dev, Backbone Noob. In my rails models, a project has many tasks

  • 0

Longtime Rails Dev, Backbone Noob.

In my rails models, a project has many tasks and a task belongs to a project.. Standard stuff.

Trying to get a project’s tasks json in a collection.

ExampleApp.Collections.Tasks = Backbone.Collection.extend({
  url: '/projects/<dynamic_id>/tasks',
  model: ExampleApp.Models.Task
});

Every example Ive seen so far references the url as /tasks. Id like to pass a project id to the collection to get that projects tasks.

Ive checked out Backbone Relational but not sure what the best solution is.

Cheers

  • 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-06-11T09:27:16+00:00Added an answer on June 11, 2026 at 9:27 am

    I would highly recommend using Backbone-Relational as opposed to hacking the relationship on your own. Reasons for using Backbone-Relational from personal experience:

    • Creates forward and backward relationships, so you can get all tasks related to a project, or the project to which a task belongs
    • Easy to serialize, and automatic deserizalization. That is, you give it a JSON and it builds out all the models and their relationships. Very handy.
    • Your models remain independently defined and can use standard Backbone stuff to save/fetch without any additional work.
    • It can also play nicely with various Backbone extensions such as Marionette and ioBind/ioSync.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a longtime Java programmer working on a PHP project, and I'm trying to
I am currently trying to learn Ruby On Rails as I am a long-time
I have a rails application on a shared server that also has a decently
I am planning on writing a rails application which will distribute tasks to several
Netbeans ide has rails console? I use Netbeans for PHP for a long time,
I'm developing a system (with Rails 2.3.2, Ruby 1.8.7-p72) that has a sizable reporting
I'm a longtime Visual Studio(from versions 6 to 2008) user that really like the
Long time listener, first time caller. I'm a 6 month old dev from Code
I'm learning Rails, and the target of my experiments is to realize something similar
I have a jruby/rails app using: jruby 1.4.0 Rails 2.3.5 ActiveMQ 5.3.0 Mule ESB

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.