Problem with select_tag


#1

i create drop-down memu for organelle by using select_tag but problem is
can’t get value for form to database seqfeature, i don’t understand
why? pls help me

code for veiw.rhtm
<% form_for :seqfeature do |form| %>


#2

Thiti Panya wrote:
i create drop-down memu for organelle by using select_tag but problem
is
can’t get value for form select_tag to database seqfeature but
form.text_field ,it’s work , i don’t understand
why? pls help me
##############################################################
code for veiw.rhtm:
<% form_for :seqfeature do |form| %>

Sequence Name : <%= form.text_field :seq_name %>
Organelle <%= select_tag "organelle" , options_for_select(["", "mitochondrion", "nucleomorph", "plastid", "mitochondrion: kinetoplast", "plastid: chloroplast", "plastid: apicoplast", "plastid: chromoplast", "plastid: cyanelle", "plastid: leucoplast", "plastid: protoplastid" ]) %>
<%= submit_tag "Submit !", :class => "submit" %> <% end %> ######################################################################## code for submit controller:

class SubmitController < ApplicationController
def view
if request.post? and params[:seqfeature]
@seqfeature = Seqfeature.new(params[:seqfeature])
if @seqfeature.save
render :text => “sequence submitted”
end
end
end
end

the vale from form insert to table seqfeatures but i can’t get

value