As you see I have validates :sector, :presence => true.
When I create a new Category, if I don't select a sector I have an
error page with the message:
Couldn't find Sector with ID=
But there is the validates, why I don't have the message sector can't be blank?
As you see I have validates :sector, :presence => true.
When I create a new Category, if I don't select a sector I have an
error page with the message:
Couldn't find Sector with ID=
Is that error occurring before the save happens, or are you saying
that it has saved it with no sector?