Hi basex,
Here's a quick example using Padrino's admin you can look at:
https://github.com/dariocravero/Padrino-nested-forms-example.
I haven't used this functionality before since it wasn't available
until 0.9.21 but now that I did, I couldn't find a faster way (apart
from the one implemented on the example) to provide a placeholder for
a new address: I just add a new address every time you edit or create
a new record. I also don't know what to do with that record if it's
blank.
ActiveRecord's :reject_if => :all_blank should work (as stated here
http://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html)
but either I'm not using it properly or it just doesn't work here.
Now, the approach I've taken to achieve that isn't the best and I know
that. I'm sure there's a best way to do it and I'd love to see this
example improved. :)
Cheers!
Darío