JS post request will try to duplicate record, won't display form prefilled with 
cloned record

El miércoles, 15 de marzo de 2017 5:30:05 (CET) Chee Chong Hwa escribió:
> Hi Segio
> 
> Yay, it works after I remove the initialize_dup codes :-)
> 
> 
> "Another issue is you are getting a JS post request, although you changed
> link
> to use get and page request, I have same config here and it works. "
> 
> Any negative implications of this JS post request ?
> 
> <snip>
> 
> > Sergio:
> > Bill model has 2 associations, customer is copied to cloned record, but
> > initialize_dup with self.items = other.items.map(&:dup) line is needed to
> > clone bill with items.
> > 
> > Another issue is you are getting a JS post request, although you changed
> > link
> > to use get and page request, I have same config here and it works.


-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to