There is a
Eg: I want to validate name should be unique with in the section
validates_uniqueness_of :name, scope: :section_id
:scope
option that you can use to specify other attributes that are used to limit the uniqueness check:Eg: I want to validate name should be unique with in the section
validates_uniqueness_of :name, scope: :section_id
Excellent post and wonderful blog, I really like this type of interesting articles keep it you.
ReplyDeletewhat does cdn stand for
thank you..
Delete