Rails drop down using data from two models?
===

I am using rails 3.2

So I have a form where a user creates a Equipment. I want them to be able to assign this equipment either to themselves or to a central repository (so a User and Repository model). I have the Equipment model set up as polymorphic which I think is needed, but I am not sure how to do the rest. I need to pass the id of the model chosen and the model name I believe. Any help would be great

Right now I am doing something like this to build the form:

        user_options = repository_options_for_select(repositories, myself)
        select(asset, :assigned_to, user_options,
           { :style         => "width:160px"  })


      def repository_options_for_select(repositories, myself)
    repositories.map{|u| [u.name, u.id, u.class]}.prepend([t(:myself), myself.id, myself.class])
  end