<%= content_tag :div, :class => :nested_fields, :style => ('display:none' if f.object._destroy) do %> Remove
<%= render nested_partial, :f => f %> <%= f.hidden_field :_destroy %>
<% end %>