Displaying 1 result from an estimated 1 matches for "querynam".
Did you mean:
querynum
2006 Apr 27
3
collection_select to display 2 fields
...for collection_select is processed prior to
executing the collection_select method. The code executes successfully
with 1 symbol in the 5th argument, but not when trying to concatenate 2.
Any help is appreciated!
My code is below:
this works:
<%=collection_select(:model_name, :field_name, @queryname, :id,
:field_name_1)%>
this doesn''t work:
<%=collection_select(:model_name, :field_name, @queryname, :id,
:field_name_1 & :field_name_2 )%>
--
Posted via http://www.ruby-forum.com/.