What is the real question here? This is not entirely clear to me.
So your current handler looks like this:
showComment : function(comment){
Now your desired solution might look like this:
<a {{action showCommentById comment_id href=true}}>Show</a>
And the corresponding handler:
showCommentById : function(commentId){ var comment = App.Comment.findById(commentId);
Will this work in your case? Or did you intend for something else?
UPDATE: OP would like to have all the data processing in the route. Your route should handle the "showCommentById" action that I suggested earlier:
App.ArticlesRoute = Ember.Route.extend({ events : { showCommentById : function(commentId){ var comment = App.Comment.findByIds(commentId);
So, in fact, you can decide where to handle the actions in your application.
source share