To give any observer the reason this worked - when you set ActiveRecord associations in Rails, you're actually creating another method / attribute for your model to use
For example, when you define the association as :system
, you'll be able to call @object.system
in your view / controller / model. However, this also means this method is occupied - preventing you from being able to use it again (otherwise it gets overwritten)
What you discovered was that, instead of calling your associations system
, calling them from
and to
, your associations will be handled correctly, giving you the ability to call @object.from
and @object.to