title: Rails 3.1 Dropdown menu and multiple datas
body: <p>it's possible make a dropdown menu where menu's fields are datas that comes from several mysql tables? I explain better: suppose that I've two models "Hardwares" and "Brands" and suppose that:</p>
  
  <pre><code>class Hardware &lt; ActiveRecord::Base
  belongs_to :brand
  end
  </code></pre>
  
  <p>and</p>
  
  <pre><code>class Brand &lt; ActiveRecord::Base
  has_many :hardwares
  end
  </code></pre>
  
  <p>and suppose that Hardware migration is:</p>
  
  <pre><code>class Hardwares &lt; ActiveRecord::Migration
  
  def self.up
    create_table "hardwares" do |t|
      t.column "model", :string
      t.column "id", :integer
       t.column "brand_id", :integer
    end
  end
  
  def self.down
    drop_table "hardwares"
  end
  </code></pre>
  
  <p>I'd want that each dropdown menu element is something like that:</p>
  
  <pre><code>@hw=Hardwares.find(params[:id])
  
  [@hw.brand.name,@hw.model]   &lt;- Dropdown menu's element
  </code></pre>
  
  <p>In witch way can I do this?
  Thank you all in advance</p>