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
i guess the select tag should be represented as form.select_tag
vimal wrote:
i guess the select tag should be represented as form.select_tag
thank a lot but i used it , i have error this this
undefined method `select_tag' for #<ActionView::Helpers::FormBuilder:0xb788a2a4>
use it as a symbol :organelle rather than as a string "organelle" make sure the :organelle field is made available in ur model seqfeature
change like
<%= form.select :organelle, (["", "mitochondrion", "nucleomorph", "plastid", "mitochondrion: kinetoplast", "plastid: chloroplast", "plastid: apicoplast", "plastid: chromoplast", "plastid: cyanelle", "plastid: leucoplast", "plastid: protoplastid" ]) %>
and it will submit to the create action of seqfeature controller. .There you can write the code as in def view
Sijo
I am a little busy for better understanding
thank you very much ,i can fix it -__-