> When I save data, form submits some empty (but not null) data. > How can I remove that?
Write a before_save method on your model that looks at each attribute and if it's a blank string set it to nil. I can't think of the name, but someone wrote a plugin that does exactly this. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

