Multi model form

hi,
can someone advice how can I create a form with fileds from different
models.
also how to get the different models (objects) saved.
thank you
dani

On Wed, Apr 11, 2012 at 17:41, Dani D. [email protected] wrote:

can someone advice how can I create a form with fileds from different
models.
also how to get the different models (objects) saved.

There may be other ways, but I use nested attributes. This is easiest
when you have a model that logically contains one or more of another,
like if a Decision has a bunch of Factors and Alternatives and
Ratings… as in:

http://TheDecider.herokuapp.com/

for which the code is at:

GitHub - davearonson/thedecider: Ruby on Rails decision support web-app

Enjoy!

-Dave


Dave A.: Available Cleared Ruby on Rails Freelancer
(NoVa/DC/Remote) – see www.DaveAronson.com, and blogs at
www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com