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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:32:07+00:00 2026-06-17T15:32:07+00:00

I’m trying to start to build a admin system that will run on a

  • 0

I’m trying to start to build a admin system that will run on a /admin/ prefix.

Here is my routes file

App.Router.reopen
  location: 'history'
  rootURL: '/admin'

App.IndexRoute = Ember.Route.extend
  setupController: (controller, model) ->
    @controllerFor('application').set('currentRoute', 'home')

When I go to /admin I get the following error:

Uncaught Error: No route matched the URL '/admin' 

I’m just starting with emberjs, and my code is based on this serie

Ember version: v1.0.0-pre.4
Ember-data current api revision:: 11
  • 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-17T15:32:08+00:00Added an answer on June 17, 2026 at 3:32 pm

    When talking about routing in emberjs, it depends which version you are using. There was a big API change between 1.0pre2 and 1.0pre3. The docu on http://www.emberjs.com is already up-to-date for the new API and and easy to understand.

    Below a really small example that shows

    • IndexRoute that automatically redirects to the overview of all members at ‘/members’.
    • Dynamic routing based on an ID
    • Serialization/Deserialization in case that the parameter is not ‘id’ but something else. In the example below, it is ‘refId’ (stands for reference ID).

    Well, the examle does not really show more than the official documentation. but add-on information is always nice.

    So, hope this helps. cheers.

    App.Router.map(function() {    
      this.resource("members", { path: '/members' });
      this.resource("member",  { path: "/members/:refId" }, function() {
        this.route("delete");
      });
    });
    
    App.IndexRoute = Ember.Route.extend({
      redirect: function() {
        this.transitionTo('members');
      }
    });
    
    App.MembersRoute = Ember.Route.extend({
      model: function() {
        return App.Member.findAll();
      }
    });
    
    App.MemberRoute = Ember.Route.extend({
      model: function(params) {
        return App.Member.find(params.refId);
      },
      // overwrite default serializer (defaults to 'id', member has 'refId')
      serialize: function(model) {
        return { refId: model.refId };
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I am writing an app for my school newspaper, which is run completely online

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.