Advanced Form Building Technique

I am attempting to pre-populate a form and generate that form based on preferences in a separate model. I will layout the design logic for my concept. Because, its needed for filling in unique data for a specified facility model.

A facility has many :chart_events (using simple_calendar)
That facility can only use certain chart event names in their form.
I created a chart_preference model with a chart_preference_event child model
The chart_preference_event child model will have the selected names for the attribute in the chart_event form (admin selected)

I need to build nested_attribute forms for each chart event, using the chart_preference_event table.
How can I do this in a clean way?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs