Topic: nested_form not saving to model Rails 3

I think I am on the right path for the following, though i cannot save the form data to the model. I have 2 models

    class Prediction < ActiveRecord::Base
      attr_accessible :home_team, :away_team, :home_score, :away_score, :fixtures_attributes

      has_many :fixtures
      accepts_nested_attributes_for :fixtures
    end

    class Fixture < ActiveRecord::Base
      attr_accessible :home_team, :away_team, :fixture_date, :kickoff_time

      belongs_to :predictions
    end

To create a new prediction record i have a form that takes all the fixtures and pre populates the form and the user will just add scores next to each team


    <%= form_for @prediction do |f| %>
    <!-- Gets all fixtures -->
    <%= f.fields_for :fixtures, @fixtures<!-- grabs as a collection --> do |ff| %>

    <%= ff.text_field :home_team %> VS <%= ff.text_field :away_team %><%= f.text_field :home_score %><%= f.text_field :away_score %><br>

    <% end %>
    <%= f.submit 'Submit Predictions' %>
    <% end %>

Then i have my controller to take care of the new/create action, which i think is where i may be falling over


    class PredictionsController < ApplicationController

    def new
     @prediction = Prediction.new
     @prediction.fixtures.build
     @fixtures = Fixture.all
    end

     def create
      @prediction = Prediction.new(params[:prediction])
      @prediction.save
       if @prediction.save
          redirect_to root_path, :notice => 'Predictions Submitted Successfully'
       else
          render 'new'
    end
      end
     end

and finally my routes

    resources :predictions
    resources :fixtures

So when i submit the form i get the error


    ActiveRecord::RecordNotFound in PredictionsController#create
    Couldn't find Fixture with ID=84 for Prediction with ID=

Looking at the params being parsed (snapshot below), something does not look right, for one the home_score and away_score are not being passed through.


    {"utf8"=>"✓",
     "authenticity_token"=>"DfeEWlTde7deg48/2gji7zSHJ19MOGcMTxEsQEKdVsQ=",
      "prediction"=>{"fixtures_attributes"=>{"0"=>{"home_team"=>"Arsenal",
     "away_team"=>"Norwich",
     "id"=>"84"},
     "1"=>{"home_team"=>"Aston Villa",
     "away_team"=>"Fulham",
     "id"=>"85"},
     "2"=>{"home_team"=>"Everton",
     "away_team"=>"QPR",
     "id"=>"86"}

Current Output of form


Any advice appreciated

Thanks