Best way to edit associated models?

What is a good way to edit associated models?

I am continuing a work project started by another. The schema doesn’t
seem unreasonable. But it is pre-existing and I don’t yet have a
reason to change it.

For example:

Location belongs_to Company
Workshop belongs_to Company
Workshop belongs_to Location
Workshop belongs_to Questionnaire

Company has_one Locations
Company has_many Workshops
Location has_many Workshops
Questionnaire has_many Workshops

I want to edit a Workshop training class. This has a company attached
to it and through it has a location and a questionnaire attached to
it. If I want to edit one of the associated models, such as to change
the company name, is it reasonable to want to edit it in place with
the rest of the workshop model? Generally here the relationship is
one to one most of the time. Or is it better to force the data model
on the editor and require them to edit each model on its own page? Is
the data schema always forced upon the interface?

If this is strictly a one to one relationship does that change things?
I want to edit a Company. This has a Location attached to it. If I
want to edit the location must I force the user to edit the location
on a dedicated page interface and then back to the Company edit page?

You can see the issue I am working though. General thoughts or
recommendations here? Any good examples that you can point to?


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