Nathan Van der Auwera
Nathan Van der Auwera
Ok, that is weird. Afaik this should work. Did you verify what `$('#question_options').find('input[type="text"]').length` actually returns? (and it is what you expect?) A suggestion: why not hide the "remove"-links (and only...
And you are also sure the callback is actually triggered?
I had already tested this, but for demonstration purposes I have updated the demo project where this cancellation is demonstrated easily: when inserting a new task you got as in...
Yes this is a known issue, because we are using the association details to create the nested items, rails presumes, for a `has-one` relation, only one item can exist. This...
Ha there already was some effort to document it (or warn of this behaviour) in #247, and in that _very very very_ old PR I claim I would attempt to...
So the question is how to style the link as a button (I added an answer to the SO question you linked to), right? You can just style the link...
Ok, the SO question confused me ;) I understand the purist approach to the HTML. I guess I am showing my age in preferring links because they used to be...
Haha yes, good use case indeed. Maybe a bit contrived and imho also easy to work-around (which are probably already doing). Anyway, you got me inspired to look a little...
Let me see if I understand this correctly: when clicking the `link_to_add_association` you do an ajax call to get an actual id (thus creating an empty child?) and then use...