Why would @params[:page] >= 2 give an error?

Can anyone please guide me as to what is wrong with the following?

  if @params[:page] >= 2
      @[email protected][:page]
  end

Thanks
Frank

On 2/6/06, softwareengineer 99 [email protected] wrote:

Can anyone please guide me as to what is wrong with the following?

 if @params[:page] >= 2
     @[email protected][:page]
 end

The error you’re getting is … ?

Could it be

if @params[:page].to_i >= 2

Kent

Kent,
This may be the answer. I will test it out

thanks
Frank

Kent S. [email protected] wrote: Could it be

if @params[:page].to_i >= 2

Kent