In my rails 3.0.9 app I'm trying to add nested attributes
dynamically, but I don't want to use "nested form gem"
So I found this example
but this code doesn't work
out = ''
out << fields.hidden_field(:_delete)
out << link_to_function("remove", "$
(this).previous().value = '1'")
I think that lines which starts with "out <<" make some conflicts,
because I've checked the html (firebug) and the simbols "<" and ">"
<a href="#" onclick="$(this).up('.task').hide(); $
(this).previous().value = '1'; return false;">remove</a>
Can you help me please?? Thanks