Dear All,

I m using the below select helper for my select helper which works fine.

<%=privilege. select :AC,Role.find(:all,:conditions => {:role_type =>
"AC"}).collect {|c| [ c.role_name, c.id ]  },{},{:class => "txtbox"} %>

Its generates the below html...

<select name="privilege[AC]" id="privilege_AC" class="txtbox">
<option value="4">Trainees</option>
<option value="8">Test Group Role</option></select>

Is it possible to add title for the select options...
i need like below..is it possible to get this via rails select
helper....
<select>
<option value="4" title="Trainees>Trainees</option>
<option value="8" title="Test Group Role">Test Group Role</option>
</select>

Kindly give your suggestions and helps.
Thanks
-- 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to