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


#1

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

  if @params[:page] >= 2
      @title+=@params[:page]
  end

Thanks
Frank


#2

On 2/6/06, softwareengineer 99 removed_email_address@domain.invalid wrote:

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

 if @params[:page] >= 2
     @title+=@params[:page]
 end

The error you’re getting is … ?


#3

Could it be

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

Kent


#4

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

thanks
Frank

Kent S. removed_email_address@domain.invalid wrote: Could it be

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

Kent