Displaying 1 result from an estimated 1 matches for "4356a794".
Did you mean:
3561794
2006 Feb 18
6
Active Record errors value - Why doesn''t this work?
I''m creating an AR object in my controller and then attempting to add
error messages to it:
if (master_storeids.nil?)
@item.errors.add_to_base ''No store is selected''
end
This works without error but when it comes time for AR to add the
record, it apparently initializes the errors because the message that I
added does not cause the AR add to fail as you would