Displaying 1 result from an estimated 1 matches for "include_other".
Did you mean:
  include_order
  
2006 Feb 27
0
Example code for select_from_db (a.k.a. combo box)
...|
         unless result.send(method).blank?
           choices << result.send(method)
         end
       end
       choices = choices.sort.uniq
     end
     choices.insert(0,"") if options[:include_blank]
     choices << ["Other...","other"] if options[:include_other]
     if options[:selected]
       selected = "#{options[:selected]}"
     else
       selected = ""
     end
     uniqid = "#{html_options[:uniqid]}" if html_options[:uniqid]
     tag = "#{object}_#{method}_#{uniqid}"
     output = Array.new
     output...