Added attr_accessible to the model to allow for mass-assignment.