||Rolling with Ruby on Rails, Part 2|
|Subject:||the value of the drop down list will not be save..|
Response to: the value of the drop down list will not be save..
|I found that if I didn't actually select a choice from the category_id drop down menu it would assign a "0" to that recipe's category_id field. For example, when I was updating the "Hot Chips" recipe after adding the category_id, the drop down menu desplayed "Snack" without my selecting it, but when I clicked on the update button I got an error when Recipe's list.rhtml tried to deslay the assigned categories.|
Hear us Roar