manoj c. wrote in post #1094553:
> Colin Law wrote in post #1094550:
>> On 31 January 2013 11:56, manoj c. <[email protected]> wrote:
>>> yes i meant select_tag only  like below example
>>> <%=select_tag "people", "<option>David</option>".html_safe%>
>>>
>>> But here name and id of select_tag is same(people), i want to know how
>>> to give it seprately
>>
>> OK, I understand.  I don't know of a way to do that.  Why do you need
>> it?
>>
>> Colin
>
> :( ok its a need now as to do some operation in ajax

Hi colin,
            we can name to select _tag in rails 3 like,
<%=select_tag "people", 
"<option>David</option>".html_safe,{:name=>{'sample'}}%>

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to