Issue with greater than operator in rhtml

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’

thanks in advanced

Regards
Sachin

On 28 February 2012 07:14, sachin kewale [email protected] 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.
:-/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs