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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:40:42+00:00 2026-06-17T04:40:42+00:00

I have the following parent template {{render ‘form’ this}} and the following partial template

  • 0

I have the following parent template

{{render 'form' this}}

and the following partial template

<form>
   ...
</form>
<a href='#' {{action 'cancel'}}>{{buttonTitle}}</a>

the buttonTitle is coming through from the parent controller but the cancel action that is defined in the same controller is not binding. What am I doing wrong?

  • 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-17T04:40:43+00:00Added an answer on June 17, 2026 at 4:40 am

    I think what you want is the template helper, which renders templates in the current context.

    The render helpers renders a template with its associated controller. So for example, if you did:

    {{render "sidebar"}}
    

    That would render the sidebar template using App.SidebarController.

    If you did:

    {{render "post" post}}
    

    That would render the post template using App.PostController, with the current post as the controller’s model.

    It was a bug that these sub-controllers don’t bubble up events, but I don’t think that you wanted this behavior in the first place. (UPDATE This bug is now fixed on master)

    We are planning on making the naming and usages much clearer in the coming weeks.

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

Sidebar

Related Questions

I have the following structure: class foo(object): class bar(object): def __init__(self, parent): self._parent=parent #this
I have this code that uses a template parent class A that has one
I have the following code: template<typename Parent, typename T, void (Parent::*Setter)(T), T (Parent::*Getter)()> struct
Say I have the following code: class Parent { static string MyField = ParentField;
I have the following two models: class Parent < ActiveRecord::Base has_one :child, dependent: :destroy
Suppose we have the following table data: ID parent stage submitted 1 1 1
I have the following sample of data to insert into tables(from parent to child,
I have the following HTML and I need to get the first div parent
Say I have a Boost Spirit grammar like this, where a parent rule passes
I have the following in my feature.template.xml ... <VersionRange BeginVersion=1.0.0.1 EndVersion=1.0.0.2> <CustomUpgradeAction Name=1.0.0.1_TO_1.0.0.2></CustomUpgradeAction> </VersionRange>

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.