Displaying 1 result from an estimated 1 matches for "empty_string_messag".
Did you mean:
empty_string_message
2006 Apr 28
1
Where to put localization strings
Hello!
I have a model that validates presence of the attribute title
class Entry < ActiveRecord::Base
validates_presence_of :title
:message => ''empty title is a no no''
end
I also have a test of this valitation.
class EntryTest < Test::Unit::TestCase
fixtures :entries
def test_validate_title
first = entries(1)
first.title = ''''