I used “functional_system” instead of simply “system”, because it was giving me errors as it is one of Rails reserved words - something I don’t like about Rails.
The View (templates)
I included the checkboxes representing developers working on the same system:
Rails has recognized the request parameters and magically filled out the
A problem occurred when I wanted to include the
join_date in the association information. That is the
developers_functional_systems has an additional field of
join_date. After trying out several scenarios - I finally came across
Adding the following lines to the controller
This performs what Rails has previously done automagically. It added a new
developers_functional_systems’s entry (explicitly), with the additional association info of
As a more friendly approach, and to make use of Rails magic, It was better off adding the “join_date” in the view.
The naming convention is a bit tricky, after several trials, this have worked:
I’m still not sure how the hash represented by
name=”developers[join_dates]” is recognized as belonging to the current
functional_system. Does anyone have a clue?