Displaying 1 result from an estimated 1 matches for "new_linea_id".
2009 Jun 29
0
Problem with 2.3 nested forms and new elements
...gment ****************
def add_linea_link(name, form)
link_to_function name do |page|
nueva_linea = @factura.lineas.build
linea = render(:partial => ''linea'', :locals => { :pf => form,
:linea => nueva_linea})
page << %{
var new_linea_id = "new_" + new Date().getTime();
$(''lineas'').insert({ bottom: "#{ escape_javascript
linea }".replace(/new_\\d+/g, new_linea_id) });
}
end
end
********** _form.erb.html from facturas fragment **********
<table id="lineas&q...