changed syntax of strong paramaters code to permit category_ids array. 'category_ids:' had not worked previously so I'd used hash rocket but must've had a typo because tried again and it worked