ruby on rails - How to generate a select box by using options_from_collection_for_select -


I am really confused with the selected boxes in the ROR. How can I create a working box by using options_from_collection_for_select, it will generate only the option tag and not the selection tag? Can anyone provide me an example to use it.

I have a hard time understanding the selected boxes, I do not know why ...

thanks

  & lt;% options = options_from_collection_for_select (@awesome_options, 'id', 'name')%> & Lt;% = f.select: awesome_column, option% & gt;  

If you are getting the error, then we may be able to give you better answers, but I believe the above is the basic essence of the .


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -