You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I can't figure out how to make validation of translated attributes work.
Here is my very simple model :
class Category < ActiveRecord::Base
puret :name
validates_associated :translations
end
class CategoryTranslation < ActiveRecord::Base
puret_for :category
validates_presence_of :name
validates_uniqueness_of :name
end
Any ideas how to make the validation work ?
Thanks Nicolas.
The text was updated successfully, but these errors were encountered:
Hello,
I can't figure out how to make validation of translated attributes work.
Here is my very simple model :
Any ideas how to make the validation work ?
Thanks Nicolas.
The text was updated successfully, but these errors were encountered: