Re: [Rails] issue with greater than operator in rhtml
On 28 February 2012 07:14, sachin kewale <sachinkewale@gmail.com> wrote:
> hi all,
> i have one issue with the greater than operator ,how should i use greater
> than operator ?
> i have condition <%if @c_page > 5%> it giving error 'undefined method `>'
> for nil:NilClass'
?? Did you read the error?
It has nothing to do with HTML; it has nothing to do with the "greater
than" operator.
It's telling you that the @c_page variable is nil.
:-/
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home