title: Collecting and using value from Ember.TextField
body: <p>I'm writing a small sample app using Ember.js. My goal is to determine use cases for Ember. My app is a simple Twitter feed viewer. I click an Ember.Button object which loads my Twitter feed and dumps it to the page. That all works great, but the username is hardcoded. I'm wanting to dig in deeper and so I've added an Ember.TextField view that I'd like to use to indicate the Twitter username.</p>
  
  <p>I see how the button targets the bulleted list which displays the tweets, and I also see how it knows which controller to use to get the data. My question is how can I tell Ember to pull the username value from the input field and pass it into the method which calls for the tweets? I'm adding the existing JS code:</p>
  
  <pre><code>// app.js
  var Tweets = Em.Application.create();
  
  Tweets.tweetsArray = Em.ArrayController.create({
      content: [],
      loadTweets: function() {
          var url = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=commadelimited&amp;callback=?';
          $.getJSON(url,function(data){
              Tweets.tweetsArray.pushObjects(data);
          })
      }
  });
  </code></pre>
  
  <p>And here's the view:</p>
  
  <pre><code>&lt;script type="text/x-handlebars"&gt;
      &lt;div id="frm"&gt;
          {{view Ember.TextField placeholder="Twitter username"}}
          {{#view Ember.Button target="Tweets.tweetsArray" action="loadTweets"}}
              Load Tweets
          {{/view}}
      &lt;/div&gt;
      &lt;ul id="tweets"&gt;
          {{#each Tweets.tweetsArray}}
              &lt;li&gt;
                  &lt;h3&gt;{{user.screen_name}}&lt;/h3&gt;
                  &lt;p&gt;{{text}}&lt;/p&gt;
              &lt;/li&gt;
          {{/each}}
      &lt;/ul&gt;
  &lt;/script&gt;
  </code></pre>