Retrieving values from combo box

Jul/10:

<%= select_tag "jul10", "YNR" %>

At the moment, my html form displays this combo box the way i want it,
but it does not record down what the user has selected and save it to
the database

help please,

thanks!

Are you generating your form using form_for :foo ?, if so then you’d
want
something like this:

<%= foo.select_tag :jul10, %w( Y N R ) %>

Assuming jul10 is a member of the object you’re saving into (using
update_attributes, or new(params[:foobar])).
Does this help, if not, what does your controller method look like that
is
saving the record?

Cheers,
James

erm…i’m new to ruby =( don’t really understand what you said, so
sorry

but i’m not generating my form, i created this form myself
and replaced it in the _form.rhtml

Jul/10:

<%= select_tag "jul10", "YNR" %>

produces the combo box but doesn’t actually save the value into my
database when the user clicks create, everything else that the user
types in other fields can be saved though.

below is the whole _form.rhtml

<%= error_messages_for 'course' %>

...

Course Details:

Presentation Details:

Final Presentation (mmm yyyy):

<%= text_field "course", "final_presentation", :size=>"5" %>

Presentation Pattern:

<%= text_field "course", "presentation_pattern", :size=>"30" %>

Jan/08:

<%= select_tag "jan08", "YNR" %>

Jul/08:

<%= select_tag "jul08", "YNR" %>

thanks!