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| %>
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| %>
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| %>
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
value
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs