title: Ember 1.0.0 - can no longer access controller from view?
body: <p>I'm using a <code>render</code> helper inside a template, which renders a searchbox with a typeahead.</p>
  
  <p>Essentially (code removed for brevity):</p>
  
  <pre><code>script(type='text/x-handlebars', data-template-name='index')
      {{render search}}
  
  script(type='text/x-handlebars', data-template-name='search')
      {{view App.TaggableInput valueBinding="searchText"}}
  </code></pre>
  
  <p>Which gives me a <code>SearchController</code> separated from the <code>IndexController</code>.</p>
  
  <p>Inside <code>App.TaggableInput</code> I'm grabbing <code>searchController</code> to do some checking on the keyUp event:</p>
  
  <pre><code>App.TaggableInput = Ember.TextField.extend({
      keyUp: function(e){
          var controller = this.get('controller');
          // Do stuff with the controller
      }
  });
  </code></pre>
  
  <p>On Ember RC7, I can access the controller inside theview as you'd expect with <code>this.get('controller').get('searchText')</code>.</p>
  
  <p>However in Ember 1.0.0 <code>this.get('controller')</code> returns the view, and whatever I do I can't get <code>searchController</code>.</p>
  
  <p>I can't find any related info on the ember website regarding what's changed or what I'm supposed to do... for now I'm sticking with RC7.</p>
  
  <p>Any ideas? I've spent hours on it this morning and can't figure it out. Thanks.</p>
  
  <h1>UPDATE: Fixed!</h1>
  
  <p>I swapped out <code>this.get('controller')</code> for <code>this.get('targetObject')</code> and it works as before. Had a peruse through <a href="https://github.com/emberjs/ember.js/commit/326af5a9c88df76f5effe11156a07b64c8b178a3#packages/ember-handlebars/lib/controls/text_support.js" rel="noreferrer">a recent commit in ember source</a> to find it...</p>
  
  <p>Thanks for your suggestions guys!</p>