Displaying 1 result from an estimated 1 matches for "dropdownnlist".
Did you mean:
dropdownlist
2006 Feb 02
4
Doubts on validation
...ent < ActiveRecord::Base
belongs_to :program
validates_presence_of :fname, :program
end
When I have the dropdown list with the available programs, the
application doesn''t validates the text field if I try to create a record
with blank "fname". However if remove the dropdownnlist, it checks
whether fname is present or not. Could anyone tell what I am doing wrong
here?
Thanks
Silvy Mathews