# Populating oracle db data for radio button on the view

**URL:** <https://www.ruby-forum.com/t/populating-oracle-db-data-for-radio-button-on-the-view/126871>\
**Category:** Rails\
**Created:** [January 23, 2008, 12:34am UTC](https://www.ruby-forum.com/t/populating-oracle-db-data-for-radio-button-on-the-view/126871 "2008-01-23T00:34:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![backz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@backz](https://www.ruby-forum.com/u/backz)\
**Post date:** [January 23, 2008, 12:34am UTC](https://www.ruby-forum.com/t/populating-oracle-db-data-for-radio-button-on-the-view/126871/1 "2008-01-23T00:34:52Z")

</div>

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  
  
\<%= radio\_button(“attending\_ip”, ‘service’, ‘GI’ ) %\>GI  
  
\<%= radio\_button(“attending\_ip”, ‘service’, ‘Reh’ ) %\>Rehab

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,
