Hello!
Since this is my first post here and I’m fairly new with the whole RoR
concept, please bare with me (just wanted that to be out in the open)!
;D
I’m trying to make a checkbox for each input in another
model/database-table.
I have a database table called Roster which includes the colums “id” and
“name”.
And then I have a table called matches that have colums “member1”,
“member2” up to “member5”. Those are all varchar’s.
What I’m trying to do is to generate a checkbox for each member in the
Roster table into my matches controller.
In other words…
DATABASE’s
Roster
id | name |
1 | test1 |
2 | test2 |
3 | test3 |
4 | test4 |
5 | test5 |
. | … |
. | … |
58 | test58 |
Matches
member 1 | member 2 | … | … | member 5 |
test1 | test 23 | … | … | test 38 |
If you don’t understand what I’m trying to achieve please don’t hesitate
to ask, cause I will need a somewhat “tutorial for dummies” to manage
this problem.
Thank you in beforehand
Christoffer Wallenius