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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:21:46+00:00 2026-06-13T21:21:46+00:00

Today I have come to a shocking discovery: actions referenced on a view are

  • 0

Today I have come to a shocking discovery: actions referenced on a view are handled by their route, not by the view which referenced it. Ex:

<a href="#" {{action edit}}>Edit this</a>

The edit action must be defined in the Route, not in the View. When I was not using a Router before the View was the one responsible for handling such events and I was really happy about it.

Can anyone please:

  1. explain to me why the Route must handle the event, and what are the benefits of this
  2. tell me how can I give control back to the View in matters of handling such actions/events?
  • 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-13T21:21:47+00:00Added an answer on June 13, 2026 at 9:21 pm

    Set the target as view

    <a href="#" {{action edit target="view"}}>Edit this</a>
    

    If your action is in controller then use

    <a href="#" {{action edit}}>Edit this</a>
    

    Default target refers to the view’s controller

    I’d suggest you to go through this Reference: Ember Action Helper

    I’d like to mention some key points as per the above reference

  2. In a typical Ember.Router-backed Application where views are managed through use of the {{outlet}} helper, actions will be forwarded to the current controller.
  3. If the action is not defined in the controller, then the current route is targeted.
  • 0
  • Reply
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
    • Report

Sidebar

Related Questions

I have come across a situation today which has me wondering about best practices.
Today while writing some Visual C++ code I have come across something which has
Today I have noticed that the order in which the $lt and $gt operators
Today I have come across a surprising definition of a metaclass in Python here
Today, I have come across a bug in my Zend Framework application. This is
I have come across this roadblock today. Maybe due to the lack of sleep/coffee,
Today I have had a problem with hiding text with text-indent: -9999px rule. I
Today i have a little problem containing a File Upload. First some Infos: Rubyversion:
Today I have this structure... tableA.id tableB.id tableB.tableAId (fk) tableC.id tableC.tableBId (fk) Is it
Today i have been interested in answers on this: where you create your work

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.