Displaying 2 results from an estimated 2 matches for "delayhidetip".
2007 May 24
3
Help with Create and Update with options_for_select in a select_tag
...lect_tag ''access_control[]'',
options_for_select($types, ''@types''), {:multiple => true, :size
=> 5, :id => "access_control_value",
:onfocus=>"fixedtooltip(CONTROL_MSSG, this, event,
'''')", :onblur=>"delayhidetip()"}%>
<%= error_message_on :service, :access_controls %><br />
Controller
--------------
#create works but is this the best way?
def create
.....
if params[:access_control]
params[:access_control].each do |value|
control = AccessControl.new
control.value...
2007 May 24
1
How do I show the selected values in options_for_select? Not as simple as it sounds.
.../label>
<%=select_tag ''access_control[]'',
options_for_select($types, @types), {:multiple => true, :size =>
5, :id => "access_control_value",
:onfocus=>"fixedtooltip(CONTROL_MSSG, this, event,
'''')", :onblur=>"delayhidetip()"}%>
<%= error_message_on :service, :access_controls %><br />
But when I edit a Service with access_controls, nothing is pre-
selected. What am I doing wrong?
Please, show me in this example, not some simple example that I have
seen a million times already, i.e., the API exa...