Allow_empty instead of allow_nil

Is trhere any way how to support allow empty? Rails prefer empty string
than null for database and then validations with allow_nil fails.

stuff wrote:

Is trhere any way how to support allow empty? Rails prefer empty string
than null for database and then validations with allow_nil fails.

This thread will probably help you:
http://www.ruby-forum.com/topic/53143#28733

Jeroen

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs