undefined method `id’ for nil:NilClass
if cookies[:mentor_id].blank?
cookies[:mentor_id] ||= @mentor.id
end
end
end
Here is a trace: in a gist
undefined method `id’ for nil:NilClass
if cookies[:mentor_id].blank?
cookies[:mentor_id] ||= @mentor.id
end
end
end
Here is a trace: in a gist
cookies[:mentor_id] is not not set, nor is @mentor. You’re trying to cal id on nil, just as the error says.
Thanks @derekprior I’m working my way through the code