softwareengineer 99
2006-Feb-07 01:57 UTC
[Rails] 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 @title+=@params[:page] end Thanks Frank --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060207/a556d67a/attachment.html
On 2/6/06, softwareengineer 99 <softwareengineer99@yahoo.com> wrote:> Can anyone please guide me as to what is wrong with the following? > > if @params[:page] >= 2 > @title+=@params[:page] > endThe error you''re getting is ... ?
Could it be if @params[:page].to_i >= 2 Kent On 2/6/06, softwareengineer 99 <softwareengineer99@yahoo.com> 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@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
softwareengineer 99
2006-Feb-07 16:38 UTC
[Rails] Why would @params[:page] >= 2 give an error?
Kent, This may be the answer. I will test it out thanks Frank Kent Sibilev <ksruby@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@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails@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