On Wed, Apr 11, 2012 at 17:41, Dani Dani
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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:
https://github.com/davearonson/thedecider/
Enjoy!
-Dave
--
Dave Aronson: 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
--
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@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.