Here is code which is not working
class WeekDay < ActiveRecord::Base
validates_inclusion_of :day, :in => %w(sunday monday tuesday wednesday thursday friday saturday), :case_sensitive => false
end
Currently i have all of days in db except sunday. I am trying to add "Sunday", and getting errors "is not included in the list".
validates :day, inclusion:{in:%w(one two), case_sensitive:false}
– Vernacularize