Ruby on Rails Monday, August 19, 2013

keerthi priya wrote in post #1119115:
> Hi all,
>
> I am getting this bellow error

> No method error undefined method `each' for nil:NilClass

The error is what it says it is. You are sending the message 'each" to a
nil object reference. Look back through the stack trace until you get to
the first line containing your own code...

> NoMethodError (undefined method `each' for nil:NilClass):
>
> ... a bunch of framework references....
>

Something you should recognize...
> app/models/exam_report.rb:89:in `generate_normal_report'

Line 89 of exam_report.rb. Find out which object is receiving the 'each'
message and figure out why the reference is nil.

>
> ... stack trace continues ...
>

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/803ed00ad9761c59ee27f6b3f890e413%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment