fields_for render :partial => f with new dynamic members...

Posted by Dmitriy Likhten on Stack Overflow See other posts from Stack Overflow or by Dmitriy Likhten
Published on 2010-05-16T05:53:11Z Indexed on 2010/05/16 6:00 UTC
Read the original article Hit count: 196

Filed under:

I would like to do the following:

<% f.fields_for :blind_dates do |bdf| %>
    <%= render :partial => bdf %>
<% end %>

Which is cool. The problem is I want to have a link "add another blind date" which will use the same partial, but add a new one dynamically to the page.

How do I do this? Is there documentation that you have a link to?

© Stack Overflow or respective owner

Related posts about ruby-on-rails