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

  • Home
  • SEARCH
  • 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 9231787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:09:24+00:00 2026-06-18T06:09:24+00:00

I got completely stuck, here is the fiddle . In the example I want

  • 0

I got completely stuck, here is the fiddle. In the example I want to be able to load additional data when i visit url /cars/details, but I can’t figure out how can I do that.

here is my models:

App.Cars = DS.Model.extend({
    name: DS.attr('string'),
    details: DS.belongsTo('App.Details')
});

App.Details = DS.Model.extend({
    name: DS.attr('string'),
    color: DS.attr('string'),
    wheels: DS.attr('string')
});

And here shortened FIXTURES

App.Cars.FIXTURES = [{
  id: 1,
  name: 'Alfa Romeo',
  details: 1
}];

App.Details.FIXTURES = [{
  id: 1,
  name: 'Alfa Romeo',
  color: 'Red',
  wheels: '14'
}];

Any ideas how to make that happen, I’m sure I’m missing something very simple, just don’t know what.

Edit

the interesting thing is, that on original project if I reload on a url which suppose to show details, I see the details, but that’s happens only once. I printed the model to console:

App.DetailsRoute = Ember.Route.extend({
  model: function(params) {
    console.log(params) // prints once only if loaded app was loaded to this url
    return App.Details.find(params.table_id);
  },
  setupController: function(controller, model) {
    console.log(model) // prints every time you click on a car
    controller.set('content', model);
  }
});
  • 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-18T06:09:25+00:00Added an answer on June 18, 2026 at 6:09 am

    There are two things that make your code not working:

    You are passing the car to the {{linkTo 'details' car}} helper.
    Consequently, the car will be the model of the DetailsRoute (and the DetailsController too), but you want the car.details instead:

    {{#each car in controller}}
        {{#linkTo 'details' car.details}}
            {{car.name}}
        {{/linkTo}}
    {{/each}}
    

    The other thing that does not work is that your fixtures id are integers.

    Replace them by a string and it will work, as you can see in this JSFiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I post this here as a last resort. I'm completely stuck and do not
I got completely stuck and cannot commit changes into an SVN repository, problem probably
I got completely confused with gae. I have a script, that does a post
Last night I got completely hosed by a worm from Dilbert.com (so be careful
I've got a Facebook iframe application that is completely external. By this I mean
Got this error message while trying to load view: The model item passed into
I wish to do something iframe-like with my div i've got going here. Basically,
I am going through the Django Book and got really stuck when trying to
I'm completely stuck on this one: I'm working on a drupal 7 website and
I'm getting started with Irony (version Irony_2012_03_15) but I pretty quickly got stuck when

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.