0
votes

I was looking to test a method I had created in my "Herd" model. The methods called "safely_assign_herd_usages". I understand how to instantiate a herd e.g. H = Herd.last However, I'm struggling to gain access to the method to test the lines of code within it. Any pointers or help would be greatly appreciated. Thanks.

If you literally typed H=Herd.last then it should be h=Herd.last (note lowercase 'h'). Uppercase designates constants in Ruby - Les Nightingill
What is the error you get on the console? - tkhobbes