Model disappears from view

I posted this topic to give a work around to the issue:

The solution involves copying some cod I give into the Ruby Console. If you can follow the description, make sure to work on a copy of the file until it looks like the problem is fixed.

If it’s a bit daunting, one of us could do the fix if you can upload your model somewhere.