I don’t have a full grasp on has_many :through associations. I’ve
detailed my models below and am trying to figure out how to do the
following in the proper manner.
- Add the selected software (only one selectable) to the current
ticket. I have @ticket.software << @software working just fine.
- Validate that A) 1 or more systems have been selected, B)
A :software_status has been selected. I’m not sure where these
validations should go.
- Create the software to system association (w/ sofware_status value)
through the join model
- How to setup the new/edit form to manage all of this.
Thanks in advance.
has_many :systems, :through => :system_software
has_many :software, :through => :system_software