Is it possible to use a association in my slug_candidates method?
for example, where my model belongs_to :car
def slug_candidates
[
[car.owner, :horsepower, "horsepower"],
[car.owner, car.nickname, :horsepower, "horsepower"]
]
end
right now it returns
NoMethodError: undefined method `owner' for nil:NilClass