Displaying 1 result from an estimated 1 matches for "_presence_of".
Did you mean:
presence_of
2009 Jan 12
2
validates_presence_of fails with false boolean
This almost feels like a bug to me, since false is not nil. (i don''t
think!) Using v_p_o on a boolean field fails validation if the field is
passed with ''false''. It passes validation in the case of true. How can
I validate _presence_of a boolean if it is submitted false?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-tal...