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’}) %>
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