Possible Duplicate:
NoMethodError (undefined method `[]' for nil:NilClass)
I am new to rails 3, and I am trying to render something to an HTML form:
<td class="kanban-task-handler">by: <%=h (!@tasks[activity['taskid']]['assignee'].nil? ? @tasks[activity['taskid']]['assignee'] : '') %></td>
but I'm getting this error:
undefined method `[]' for nil:NilClass):
but I'm checking this variable and stating if it's nil--> then print out nothing... so why isn't this working?