Create a list of ruby on Rails features

Asked

Viewed 123 times

2

I’ve been trying for a few days but I haven’t been able to solve my problem. I need to create a list of features for an item and then list them all. I wish you could help me or give me some tutorial on.

Well I have a person register and I would like to include in this register several "characteristics". I currently managed two registers, one of person and another of characteristic, but I’m not able to associate the two.

I used belongs_to, but it’s just a case. I wish that the characteristics could be used in several people and several people have different characteristics.

How can I join? How can I list all features later?

1 answer

0


Maybe you can solve your problem by studying this section of the Rails Tutorial, whose approach is shown in the figure below:inserir a descrição da imagem aqui

  • Thanks for the help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.