Displaying 2 results from an estimated 2 matches for "associationl".
Did you mean:
association
2006 Jun 16
0
Getting error on a group select
...uot;)
co << Assoc.Option.new("Sidekick Design", "Sidekick Design")
co << Assoc.Option.new("Strategic Web Concepts", "Strategic Web
Concepts")
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, :display_name,
@user.level)
%>
</select>
The error message I''m getting is this:
uninitial...
2006 Jun 16
0
Getting an error on options_groups_from_collection_for_select
...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, :display_name,
@user.association)
%>
</select>
The error message I''m getting is this:
uninitialized constant ASSOCIATION_OPTIONS...