<%= task.task_users.collect{|task_user| task_user.court_user.user.name}
The above code throwing the following error.
undefined local variable or method `task_users’ for
#<#Class:0x5e8899c:0x5e88974>
Task.rb has the following code:
has_many :task_users, :dependent => :destroy
This happens only in the development server.
Ayyanar Aswathaman wrote:
<%= task.task_users.collect{|task_user| task_user.court_user.user.name}
The above code throwing the following error.
undefined local variable or method `task_users’ for
#<#Class:0x5e8899c:0x5e88974>
Task.rb has the following code:
has_many :task_users, :dependent => :destroy
This happens only in the development server.
Ignore this one. Find the briefed one with the topic "Undefined method
error "
in the forums.