You spelled happend_on
and happend_at
wrongly.
You meant to use happened_on
and happened_at
with an extra e
.
This is very simple if you read the error message carefully, which is exactly what it says:
The attributes could not be found because you misspelled them!
Next time, if you get an is not defined error, check for the attributes mentioned in the error message.