Oke, I also have read that you could use : accepts_nested_attributes_for
But I cannot say in the model that on the member class I only need the title . Roelof Op woensdag 25 juni 2014 12:14:29 UTC+2 schreef M,Gopi M.gopinath: > Best Way is to use Association belongs_to. > > Best Regards, > > *Gopinath M* > > Ruby on Rails Developer > > Contact : +91-9994652146 > > Skype Id : gopinath.murugan > > Email : [email protected] <javascript:> > > > > > > > On Wed, Jun 25, 2014 at 3:40 PM, Roelof Wobben <[email protected] > <javascript:>> wrote: > >> Hello, >> >> I have a model called abbonement which should contain a title and a >> amount. >> >> Then I have a model called members which contains the name, adress, city >> and which abbonement the member has. >> >> Can I then use belongs _to or is there a better way of doing this. >> >> The abbonement is a drop down list which only contains the titles of the >> model abbonement. >> >> Can anyone give me a tip how to handle this ? >> >> Roelof >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/eb01e94f-f9ea-4d2a-b1bf-09854bc85c91%40googlegroups.com >> >> <https://groups.google.com/d/msgid/rubyonrails-talk/eb01e94f-f9ea-4d2a-b1bf-09854bc85c91%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/362b45f0-fb8a-4f5b-87b4-af03d95d5911%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

