Add ids to appointments attr accessible, take out the extra instance variables in the _form so that only @appointments is passed through.