Phillip Baker wrote:> Is there a way to set up a form_for helper to work with multiple
> methods.
> I want to submit the form data into two different tables.
Have your form submit to one method. In that method, split the data up
and create/update two separate model objects.
If you''re working with strictly REST-style controllers, you should
create a reified object (that is, one that doesn''t map directly to a
DB
table) and have it delegate to the real models.
Chris Kampmeier
http://kampers.net
--
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-/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
-~----------~----~----~----~------~----~------~--~---