I have two tables. Users, and Stats.
A stat for a user may exist without the user having signed up for the app.
This scenerio throws an nil / NoMethod Error
From what I've read, the Null Design pattern is a great remedy for this problem. However, I don't quiet get the how to implement this solution.
Here's a thread on stack overflow I found that talks about it
but it doesn't explain how can one go about accessing the relationship of a non existent user
with the same exact syntax. From what I've gathered, I'd have to do something like
Which makes my whole endeavor useless.
Thanks in advance.