Displaying 1 result from an estimated 1 matches for "privilege_ac".
2009 Jul 02
1
Rails Select Helper
...r 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.....