search for: control_mssg

Displaying 2 results from an estimated 2 matches for "control_mssg".

Did you mean: control_msg
2007 May 24
3
Help with Create and Update with options_for_select in a select_tag
...ot;required">*</ span>Access Control:</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 /> Controller -------------- #create works but is this the best way? def create ..... if params[:access_control] params[:access_control]...
2007 May 24
1
How do I show the selected values in options_for_select? Not as simple as it sounds.
...lt;span class = "required">*</ span>Access Control:</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...