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):
20: <% @tblusers.each do |tbluser| %>
21: <option value="<%= tbluser.id %>"
22: <%= tbluser.txtforename %>
Application Trace | Framework Trace | Full Trace