Displaying 1 result from an estimated 1 matches for "reserveresorc".
Did you mean:
reserveresorce
2007 Jan 31
6
Using hash.keys - why doesn't it display in order created
...InstResource, ''Course
Assignment'' => 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|%>...