I have the same question as the other two, what additional information
are you trying to add to this drop-down?

On Sep 12, 1:57 pm, Shandy Nantz <[EMAIL PROTECTED]>
wrote:
> I need to populoate a drop-down with values from two tables. Currently I
> have this code which just pulls from one table:
>
> <%= select( "hotelmembership", "hotel_id", Hotel.find( :all, :order=>
> 'name' ).collect {|h| [h.name, h.id]}, { :include_blank => FALSE } ) %>
>
> Now I need to pull more data to add to this drop-down, but I am unsure
> of how to do this. Any suggestions?, Thanks,
>
> -S
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to