Forum: Ruby on Rails Params and empty strings

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fresh M. (Guest)
on 2009-03-04 10:24
Is there some better way to do this?
Michael G. (Guest)
on 2009-03-04 10:29
(Received via mailing list)
I usually use a before validate hook, and do things like:

def normalize_fields = nil if = nil if

On Wed, Mar 4, 2009 at 2:24 AM, Fresh M.
<removed_email_address@domain.invalid> wrote:
> Is there some better way to do this?
> --
> Posted via
> >

(Ruby, Rails, Random) blog:
This topic is locked and can not be replied to.