On 28 February 2012 07:14, sachin kewale
<sachinkewale-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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.