Displaying 1 result from an estimated 1 matches for "company_2".
Did you mean:
company2
2006 Jun 16
0
Getting an error on options_groups_from_collection_for_select
...tion.new("Dr. Dan", "Daniel Jones")
dr << AssocOption.new("Dr. Mike", "Michael Smith-Jones")
co = AssocType.new("COMPANIES")
co << Assoc.Option.new("Company_1", "Company_1")
co << Assoc.Option.new("Company_2", "Company_2")
ASSOCIATION_OPTIONS = [ none, dr, co ]
end
My View looks like this:
<select name="user[associationl]" id="user_association">
<%=
option_groups_from_collection_for_select(ASSOCIATION_OPTIONS,
:options, :type_name,
:code_name, :displ...