Adding a List to a rhtml file

I am a bit confused on the easiest way to add a drop down list on a
page,
that is all data from another table? It seems there
would be a gem or package made to do this. It has to be
pretty common stuff.

If a user picks an item from the list, I just want the id,
to store in a field in the active table.

how are you handling this? i was looking at acts_as_list.

any suggestions?

i have to do this a lot, so i was wondering. like, are you making
static lists for web page.

thanks

On Nov 28, 2007 4:25 PM, Trent B. [email protected]
wrote:

I am a bit confused on the easiest way to add a drop down list on a
page,
that is all data from another table?

http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000512

http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000517


Greg D.
http://destiney.com/

Greg D. wrote:

On Nov 28, 2007 4:25 PM, Trent B. [email protected]
wrote:

I am a bit confused on the easiest way to add a drop down list on a
page,
that is all data from another table?

http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000512

http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000517


Greg D.
http://destiney.com/

thanks a bunch…

Thank you. I’ve been wondering about this.

John

On Nov 28, 5:00 pm, Trent B. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs