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

softwareengineer 99 softwareengineer99 at yahoo.com
Tue Feb 7 16:38:50 GMT 2006


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

Kent Sibilev <ksruby at gmail.com> wrote:  Could it be

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

Kent

On 2/6/06, softwareengineer 99  wrote:
> Can anyone please guide me as to what is wrong with the following?
>
>      if @params[:page] >= 2
>          @title+=@params[:page]
>      end
>
>  Thanks
>  Frank
>
>
>  ________________________________
>  Yahoo! Mail - Helps protect you from nasty viruses.
>
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
_______________________________________________
Rails mailing list
Rails at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails


		
---------------------------------
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060207/86692fe4/attachment.html


More information about the Rails mailing list