I have an _edit and _new partial that has the same text fields. When I
edit an object via ajax by rendering the edit partial, the date_select
becomes the objects date. After the object is saved (updated) the _new
partial replaces the edit partial and the date_select date is Still of
the previous object. I would like the date_select to return to todays
date when the _new partial is rendered. It does it of course when I
refresh the page, but not with ajax. Any pointers?
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---