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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:02:54+00:00 2026-06-06T10:02:54+00:00

This error is driving me crazy . I tried freenode #emberjs before asking here.

  • 0

This error is driving me crazy. I tried freenode #emberjs before asking here.

I have the following routing scheme:

App.Router = Ember.Router.extend({
    //...

    showPost: Ember.State.transitionTo('post'),

    posts: Ember.Route.extend({
       route: '/posts',
       connectOutlets: function(router, context) {
             router.get('applicationController').connectOutlet({ outletName: 'page', name: 'posts', context: App.Post.find()});
             this._super(router, context);
       }
    }),

    post: Ember.Route.extend({
         route: '/posts/:post_id',
         connectOutlets: function(router, post) {
             router.get('applicationController').connectOutlet({ outletName: 'page', name: 'post', context: post});
             this._super(router, post);
         }
    })
});

The posts route that shows the list of posts works fine. Navigating to a specific post, for example posts\1 I get the following error in the console:

Uncaught TypeError: Object <App.Post:ember6957> has no method 'addArrayObserver' 

If needed, take a look at the stack trace: http://pastebin.com/eEJ2hMAV

The router sets the content property of App.router.postController to the post that the user is clicking on. In the console,

App.router.postController.get('content') instanceof DS.Model  

returns true. And it tries to call addArrayObserver on this content, but DS.Model isn’t extending Ember.Array (where addArrayObserver is defined).

On the other hand,

App.router.postsController.get('content') instanceof DS.RecordArray

returns true, and calling addArrayObserver on this content works fine.

What am I missing?

  • 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-06T10:02:56+00:00Added an answer on June 6, 2026 at 10:02 am

    Since I miss some context from your code, I built a working example based on your code.

    to see the code, http://jsfiddle.net/Sly7/jLbry/

    to see the routes: http://jsfiddle.net/Sly7/jLbry/show

    Hope this helps.

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

Sidebar

Related Questions

This error is driving me crazy. I'm developing an App Engine Python application. These
This problem is driving me crazy. I have the following code: 'unprotect sheet If.Range(Start).Row+1<.Range(End).Row
This is driving me crazy: I have function void gst_init(int *argc, char **argv[]); in
This has been driving me crazy for a few days now. I have an
This is driving me crazy and I've tried a number of different options. I'm
This is driving me crazy. I have a library I source from multiple scripts,
This is driving me crazy. I've tried searching for answers and nothing quite matches
This is driving me crazy, I just can't find out the problem: I have
This is driving me crazy , I just keep getting the message error nothing
This thing is driving me crazy, and the error is quite meaningless to me:

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.