Thursday, July 1, 2010

[Rails] Update multiple fields with onclick

We've all seen the checkout forms with Bill To: and Ship To: I'd like
to have a button that says "Ship to Bill To:" and if we click it, it
copies all the Ship To: fields across such as phone, email, etc.
I've been looking at link_to_function, is that the right path?
I've done observe_fields before but that went to a controller action
whereas here we could get by just copying params[field_values].
Thanks,
David

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate