ryanb/nested_form — Issue #148: add fields _after_ "add" link
Author: rbwabd
Created: 2012-03-09 16:06:40+00:00
State: open

Hi,

i'm a bit of a newb to rails so hope i didn't miss something obvious, but i was trying to use nested_form but to have the new fields added after the "add" link rather than before it (idea is that as user fills a partial they click add and everything gets pushed downwards which avoids scrolling etc.)

i was able to achieve that effect quite easily by changing in nester_form.js, insertFields, return $(content).insertBefore(link); to insertAfter.

however i was wondering whether you couldn't add this as a default option as it seems something other people might reasonably also want?

thanks, and thx for the great gem!