[Rails] No Method Error

Alana
Tue, 04 Apr 2006 10:35:33 -0000

This is the error that keeps appearing. I don''t understand why
"@tblusers" is not correct. Can anyone help?

NoMethodError in Tblregisteredphone#new

Showing app/views/tblregisteredphone/new.rhtml where line #20 raised:

You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.each

Extracted source (around line #20):

17:
18: User:
19:
20:  <% @tblusers.each do |tbluser| %>
21:  <option value="<%= tbluser.id %>"
22:  <%= tbluser.txtforename %>
23:

RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace

#{RAILS_ROOT}/app/views/tblregisteredphone/new.rhtml:20