Displaying 1 result from an estimated 1 matches for "list_modul".
Did you mean:
list_mode
2007 Jan 31
6
Using hash.keys - why doesn't it display in order created
...39;' => AssignResource, ''Style Guides'' => StyleResource,
''Plagiarism Information'' => PlagResource, ''Instructor Recommends'' =>
RecomResource, ''Course Reserves'' => ReserveResorce }
end
#action for view
def list_modules
@mods = @user.modules
@list = mod_types.keys # here I am making an array out of the hash
if request.post?
redirect_to :action => "manage_modules"
end
end
View
-----------
...
<%@list.each do |mod|%>
<%= check_box_tag("mods[]", m...