Rails Collection_Select Has_Many Through
问题 I have a user that has many accounts. I want to use a collection_select to have the user select which account they want to use. The select need to select among all the accounts assigned to the user in the user_accounts table, but the select needs to check the accounts table to get the name of the account that the drop down menu needs to display. #user.rb class Account < ActiveRecord::Base cattr_accessor :current_id belongs_to :owner, class_name: 'User' has_many :user_accounts has_many :users,