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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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.