Ruby on Rails Wednesday, June 25, 2014

On 25 June 2014 11:10, Roelof Wobben <rwobben@hotmail.com> 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 ?

Since I guess you are a beginner with Rails I suggest you work right
through a good tutorial such as railstutorial.org, which is free to
use online. That will show you the basics of rails including the
various associations.

Colin

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLt8157GWQcgZK115eQ%2B_EKafSLKKzkfyD0hrw3jwG0MUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment