Topic: how to display data as yes/no for an int
I am using a check_box on a _form that is being used to save data for a complete_flag field in one of my tables. The data is being saved to the database as an int (ie. 0 or 1) as I expected. this is okay for my edit.rhtml as i have a checkbox that can be used to modify this field accordingly. However, my list.rhtml is displaying the actual data in the table and hence shows up on the screen as 0 or 1.
I want to be able to modify my list.rhtml file so that this complete_flag field will show values of yes/no instead of 0/1. Is there an easy way to do this translation?