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

The Archive Base Latest Questions

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

I am playing around with Ember.js (within Rails app) and got the the point

  • 0

I am playing around with Ember.js (within Rails app) and got the the point when displaying a form. I used “partial” handlebars tag, like this:

{{partial "entity_edit_fields"}}

Ember tries to retrieve the template from _entity_edit_fields.hbs file. However, I have put all templates related to entity into separate directory. Now, I’d like to tell Ember to look to entity/_edit_fields.hbs. How can I achieve this?

  • 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-18T14:01:10+00:00Added an answer on June 18, 2026 at 2:01 pm

    To include the template entity/_edit_fields.hbs as a partial use:

    {{partial "entity/edit_fields"}}
    

    If you get stuck on something like this again, try having a look at the ember test suite. There will almost always be an example there that can help answer your question. I wasn’t sure how partial worked either, so before answering I had a look at handlebars_test.js

    test("should render other slash-separated templates using the {{partial}} helper", function() {
      Ember.TEMPLATES["child/_subTemplate"] = Ember.Handlebars.compile("sub-template");
    
      view = Ember.View.create({
        template: Ember.Handlebars.compile('This {{partial "child/subTemplate"}} is pretty great.')
      });
    
      Ember.run(function() {
        view.appendTo('#qunit-fixture');
      });
    
      equal(Ember.$.trim(view.$().text()), "This sub-template is pretty great.");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just playing around with Wordpress / Contact Form 7 . Is it possible to
I'm playing around with ember.js and am stuck somehow finding out how to build
I've been playing around with the HTML5 video tag and I'm puzzled as to
Just playing around with Rails 3.1 at the moment, and one issue I'm having
Reading around and playing with what I've got, I've concluded that I'm on the
I've been playing around with Windows 8 code samples - namely the BlogReader app.
Recently playing around with the open source iphone app code, and found it uses
Playing around with ember, I found that sometimes the model is stored on the
Been playing around with node.js and I am developing a file uploading web app
I'm playing around with Ember.Router . After going through the excellent sample canonical-emberjs-routing-example by

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.