I’m hoping there’s an easy way to do this. I’m trying to read options
from a database, and insert them into form tags. So for example,
In the Database Table: options
and I want to create a text_field form tag, with all the appropriate
options, is there an easy way to do this, other than having the code
output the HTML directly? I know I could just have the view put out;
<input name= etc…
but I want to use the Ruby Form helpers.
<%= text_field %>
I’m assuming I could write methods that compare what’s in the DB with
certain text, and then output a text_field or radio_button for example,
I was hoping I could just grab from the DB, and post it into the view.
Basically, I want to use database info, and input it into Ruby code to
be interpreted by ruby… i think
Hope that made sense, thanks in advance