title: Why is my code not changing the value in emberjs?
body: <p>Im learning emberjs and I'm having difficulties changing a boolean value when a button is pressed.</p>
  
  <p>This is what I am doing in the javascript:</p>
  
  <pre><code>App.LiensController = Ember.ArrayController.extend({
    actions: {
      addToPortfolio: function() {
        this.set('isInPortfolio', true);
        console.log('Action is Happening!');
      }
    }
  });
  
  App.LIENS=[
    {
            id: 1,
            apn: 'apn1',
            fips: '01700',
            state: 'CA',
            county: 'Los Angeles',
            address: 'somewhere st123',
            debt: 4000,
            isBiddedOn: false, //check
            isInPortfolio: false
    },
    {
            id: 2,
            apn: 'apn2',
            fips: '01744',
            state: 'FL',
            county: 'Miami',
            address: 'someplace st700',
            debt: 2000,
            isBiddedOn: false, //check
            isInPortfolio: true        
    },
    {
            id: 3,
            apn: 'apn3',
            fips: '05690',
            state: 'FL',
            county: 'Orlando',
            address: 'ExactPlace in st111',
            debt: 2500,
            isBiddedOn: false, //check
            isInPortfolio: false
    }
  ]; 
  </code></pre>
  
  <p>I also tried to use <code>this.toggleProperty('isInProperty');</code> but it is not working for me neither.</p>
  
  <p>And this is the html part where the button is:</p>
  
  <pre><code> &lt;script type="text/x-handlebars" data-template-name="liens"&gt;
  
      &lt;h2 class="sub-header" &gt;Liens&lt;/h2&gt;
        &lt;div class="table-responsive"&gt;
          &lt;table class="table table-hover"&gt;
            &lt;thead&gt;
              &lt;tr&gt;
                &lt;th&gt;id&lt;/th&gt;
                &lt;th&gt;apn&lt;/th&gt;
                &lt;th&gt;fips code&lt;/th&gt;
                &lt;th&gt;State&lt;/th&gt;
                &lt;th&gt;County&lt;/th&gt;
                &lt;th&gt;Address&lt;/th&gt;
                &lt;th&gt;Debt&lt;/th&gt;
                &lt;th&gt;Current Bid&lt;/th&gt;
                &lt;th&gt;IsInPortfolio&lt;/th&gt;
              &lt;/tr&gt;
            &lt;tbody&gt;
            {{#each lien in model}}
              &lt;tr&gt;
                &lt;td&gt;{{lien.id}}&lt;/td&gt;
                &lt;td&gt;{{lien.apn}}&lt;/td&gt;
                &lt;td&gt;{{lien.fips}}&lt;/td&gt;
                &lt;td&gt;{{lien.state}}&lt;/td&gt;
                &lt;td&gt;{{lien.county}}&lt;/td&gt;
                &lt;td&gt;{{lien.address}}&lt;/td&gt;
                &lt;td&gt;${{lien.debt}}&lt;/td&gt;
                &lt;td&gt;{{lien.isBiddedOn}}&lt;/td&gt; &lt;!--Check--&gt;
                &lt;td&gt;{{lien.isInPortfolio}}&lt;/td&gt;
                &lt;td&gt;&lt;button id='addLien' type='button' {{action 'addToPortfolio'}}&gt;Add&lt;/button&gt;&lt;/td&gt;
              &lt;/tr&gt;
            {{/each}}
            &lt;/thead&gt;
    &lt;/script&gt;
  </code></pre>
  
  <p>What am I doing wrong? 
  here is the jsbin <a href="http://emberjs.jsbin.com/fisifu/8/edit?html,js,output" rel="nofollow">http://emberjs.jsbin.com/fisifu/8/edit?html,js,output</a></p>
  
  <p>Thanks in advance!</p>