title: How to access the params in controller ember.js
body: <p>This is my router.js code.</p>
  
  <pre><code>this.route('contact',{'path': '/contact/:chat_id'});
  </code></pre>
  
  <p>and This is my route.js code.</p>
  
  <pre><code>model(params) {
  
    return this.store.findRecord("chat", params.chat_id)
  },
  </code></pre>
  
  <p>and This is my controller.js code and can i use like this. It shows error as null value
  please help me. How to use params in controller</p>
  
  <pre><code>recordChat: function() {
  
    var chat = this.get(params.chat_id)
  
    Ember.RSVP.hash({
      offer_id: chat,
    })
  }
  </code></pre>