Collection_Select

HI

Perhaps it is the most simple doubt that i am asking you all. I am
really
new to rails.

I haven’t understood much about collection_select.

I have posts and author tables.

I want the authors in posts.

I need a combobox to populate all the authors name

How can i do this with collection_select?

collection_select(object, method, collection, value_method,
text_method,
options = {}, html_options = {})

How should i implement this in my application?

Please explain me clearly so that i can proceed forward.

Thanks in advance

Regards,
Learner.

Rails ROR wrote:

HI

Please explain me clearly so that i can proceed forward.

Thanks in advance

Sigh

http://www.lmgtfy.com/?q=rails+collection_select

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