Ruby on Rails
Friday, December 28, 2012
Ok, I got with this code..
<%= collection_select(:question , :text, Question.all , :id, :text,
{:prompt => 'Select Question...'}, {:class=>'input', :name=>'normalSelect'}) %>
On Saturday, December 29, 2012 10:15:33 AM UTC+6:30, D2M wrote:
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
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/T24iIbWQqIsJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment