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
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.