Re: checkboxes validation

Keynan Pratt
Thu, 17 May 2007 05:13:34 -0000

i meant

      def selected
          conditions = [[]]
          params[:result].each do |result_id|
              conditions.first << ''feature.uniquename=?''
              conditions << result_id
          end if params[:result]


           conditions[0] = conditions.first.join('' OR '')
           conditions=[''1=1''] if !conditions.first or
conditions.first
== ''''