fixing fields_for tag for rails > 3.1