Form_for for multiple methods

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.

Blessed Be

Phillip

Phillip B. 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 K.
http://kampers.net

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs