Hi All,
View
Model
class Student < 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