Populating oracle db data for radio button on the view

Hi,

I am trying to populate data from oracle database table and all text fields and text areas work fine. But radio buttons does not get populated.

For example,

<%= radio_button("attending_ip", 'service', 'NBU') %>NBU<BR> <%= radio_button("attending_ip", 'service', 'GI' ) %>GI<BR> <%= radio_button("attending_ip", 'service', 'Reh' ) %>Rehab<BR>

However, on the view, if I select any radio button(from empty radio buttons) and click edit link again, it gets populated. So, it looks like it is not working with data that were already in the DB table.

Has anyone experienced this before?

Thanks,