I am trying to convert an integer to a DAYNAME in my validation message validates_uniqueness_of :day, scope: :store, :message => "already has a target for #{Date::DAYNAMES[self.day]}." This does not seem to work, I cannot access the day value. The following displays the correct value validates_uniqueness_of :day, scope: :store, :message => "already has a target for %{value}." This throws an error: validates_uniqueness_of :day, scope: :store, :message => "already has a target for #{Date::DAYNAMES[%{value}]}." Any help would be Amazing! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/01db1f73-8b91-4c19-9190-3565687d4304%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.