text: import Ember from 'ember';
  
  export default Ember.Route.extend({
    model(params) {
      return this.store.findRecord('question', params.question_id);
    },
    actions:{
    giveAnswer(params){
      var newAnswer=this.store.createRecord('answer',params);
      var question = params.question;
      question.get('answers').addObject(newAnswer);
      newAnswer.save().then(function() {
          return newAnswer.save();
        });
      this.transitionTo('infor-mation',question);
    },
  }
  });
  