Dear All.
I use this code for my project,
<%= collection_select(:zone_id , :name, @zones, :id, :name,{},{:name=>‘normalSelect’}) %>
with this. ruby on rails define default name and id. Can i change default name to my custom name.
Regards,
D2M
Dear All.
I use this code for my project,
<%= collection_select(:zone_id , :name, @zones, :id, :name,{},{:name=>‘normalSelect’}) %>
with this. ruby on rails define default name and id. Can i change default name to my custom name.
Regards,
D2M
Ok, I got with this code…
<%= collection_select(:question , :text, Question.all , :id, :text,
{:prompt => 'Select Question...'}, {:class=>'input', :name=>'normalSelect'}) %>