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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:56:21+00:00 2026-06-09T00:56:21+00:00

I am trying to get Ember working in an existing Rails app, so install

  • 0

I am trying to get Ember working in an existing Rails app, so install the ember-rails gem. It gave me a app.js based on this generator template that contains

var router = App.router = App.Router.create({
  enableLogging: true,
  location: 'hash'
});

App.initialize(router);

I also wanted to use ember-data, and saw some posts saying edge is the only way to go with that. So so updated both ember-data and ember.js itself to edge.

So when I run this, I get Uncaught TypeError: Cannot call method 'create' of undefined on the App.Router.create line.

I’m guessing that the API has changed and this is obsolete, but can’t find the current canonical way of creating this router object.

  • 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-09T00:56:22+00:00Added an answer on June 9, 2026 at 12:56 am

    The examples here are canonical AFAIK: http://emberjs.com/guides/outlets/

    …except that Ember.State should be Ember.Route now. But this is what you want to do:

    App.Router = Ember.Router.extend({
      enableLogging: true,
      location: 'hash'
    });
    
    App.initialize();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I'm trying to get DISCUS comments working in a Rails 3 app.There doesn't
I've been trying to get this working and I can't seem to figure it
I have this existing code does not work as I am trying to get
I'm trying to get Ember running with BPM based on these instructions: https://github.com/bpm/bpm/wiki/Using-BPM-with-SproutCore-2.0 Everything
I'm trying to get the Ember.js routing examples working. I have a fiddle running
Trying to get this expression to work, can someone look at it and tell
I'm working with a Flash movie and I'm trying to get the size of
I'm trying to write an app using GtkClutter but I can't get the actors
I'm trying to get used to Ember.js and Handlebars, but one problem is puzzling
Using Ember.js I get an endless loop with the following code: Controller: App.activityDetailsController =

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.