SyntaxFix
Write A Post
Hire A Developer
Questions
Arrays in Ruby don't have exists? method, but they have an include? method as described in the docs. Something like
exists?
include?
unless @suggested_horses.include?(horse) @suggested_horses << horse end
should work out of box.