I get the following error message for the code below:
Failure/Error: @league.errors.on(:short_name).should_equal "can't be blank"
NoMethodError:
undefined method `on' for #<ActiveModel::Errors:0x000001017853f0>
@league.errors.on(:short_name).should_equal "can't be blank"
According to several documentation references that I am reading, this should work. Any idea what’s going on?
Since
@location.errorsis a hash: