<commit_before>App.AnswersNewController = Ember.Controller.extend({
  actions: {
    createAnswer: function(params) {
      var self = this;
      var answer = this.store.createRecord('answer', {
        content: this.get('fields.content'),
        question: this.store.find('question', params.question_id)
      }
      answer.save().then(function() {
        self.transitionToRoute('answers.index');
      });
    }
  }
});<commit_msg>getting some help for answers.new<commit_after>App.AnswersNewController = Ember.Controller.extend({
  actions: {
    createAnswer: function() {
      var self = this;

      var answer = this.store.createRecord('answer', function(params) {
        content: this.get('fields.content'),
        question_id: this.modelFor('question').get('question_id')
      });

      answer.save().then(function() {
        self.transitionToRoute('answers.index');
      });
    }
  }
});
{'fraction_non_alphanumeric': 0.15291529152915292, 'fraction_numerical': 0.0, 'mean_word_length': 3.0444444444444443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2395723', 'n_tokens_mistral': 273, 'n_tokens_neox': 263, 'n_words': 40}