search for: role_name_required

Displaying 1 result from an estimated 1 matches for "role_name_required".

2008 Jul 06
1
ActionView::Base.field_error_proc not getting an error field
...il) I also have a select drop_down to choose a role from an array first_name, last_name and email are user record attributes, but I defined the role name as a virtual attribute validates_presence_of :email, :last_name attr_accessor :role_name validates_presence_of :role_name, :if => :role_name_required?, :message => ''must be selected'' when testing with a blank form, I get all errors detected during User model validation, which is fine... BUT ActionView::Base.field_error_proc doesn''t get the role_name error, so I cannot change the style of the select I checked it...