Rails 3.1.3 I have a form that can save a new entry to DB. Also jQuery ajax retrieves the saved data into the SAME form so that users can edit it. In order to make it work, the ''save'' button should function as both ''save'' and ''update''. And of course, its functionality goes through conditions such as if changed -> update if not -> ignore or overwrite Could anyone give me a specific example of such control method? Thanks in advance. soichi -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.