Re: checkboxes validation

Keynan Pratt
Mon, 04 Jun 2007 06:12:18 -0000

the browser should not be hanging. pop in a few logger.debug statements
to find where your trapped in a loop.

As for notifying the user


def selected
          conditions = [[]]
          if params[:result]
            params[:result].each do |result_id|
              conditions.first << ''feature.uniquename=?''
              conditions << result_id
            end
          else
            flash[:notice] = ''Please select a feature name.''
          end


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