You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In doc_parser.rb, we put each resource into a Hash.
Ln 5 "@resources = Hash.new"
then in the twitter template, we read it by
Ln 32 "<% @resources.each do |name, endpoints| %>"
which can't ensure read resources in sequence.
what about reading it by:
<% @resources.sort.map do |name, endpoints| %> ?
The text was updated successfully, but these errors were encountered:
yes. it sorts when resources are read from @Definition. but then all resources are saved in @resources which is a Hash map without ordered. the index.html.rb in the template is consuming @resources.
I want all the resources displayed in sort in the html page. not being processed in sequence.
In doc_parser.rb, we put each resource into a Hash.
Ln 5 "@resources = Hash.new"
then in the twitter template, we read it by
Ln 32 "<% @resources.each do |name, endpoints| %>"
which can't ensure read resources in sequence.
what about reading it by:
<% @resources.sort.map do |name, endpoints| %> ?
The text was updated successfully, but these errors were encountered: