Displaying 1 result from an estimated 1 matches for "manage_modul".
Did you mean:
  manage_modules
  
2007 Jan 31
6
Using hash.keys - why doesn't it display in order created
...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[]", mod ,false, {:class => 
"class"}) %>
            <%= mod%><br />
        <%end%>
--~--~---------~--~----~------------~-------~--~----~
Y...