Skip to content

Commit

Permalink
Merge pull request #62 from lgierth/fix-trace-uri
Browse files Browse the repository at this point in the history
Use absolute URIs for traces
  • Loading branch information
seancribbs committed Jul 25, 2012
2 parents 16ef119 + c6c654d commit c89fe90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/webmachine/trace/static/tracelist.erb
Expand Up @@ -6,8 +6,8 @@
<body>
<h1>Traces</h1>
<ul>
<% traces.each do |trace| %>
<li><a href="<%= trace %>"><%= trace %></a></li>
<% traces.each do |(trace, uri)| %>
<li><a href="<%= uri %>"><%= trace %></a></li>
<% end %>
</ul>
</body>
Expand Down
3 changes: 2 additions & 1 deletion lib/webmachine/trace/trace_resource.rb
Expand Up @@ -77,7 +77,8 @@ def produce_file
end

def produce_list
traces = Trace.traces
base = request.uri.path.chomp("/")
traces = Trace.traces.map {|t| [ t, "#{base}/#{t}" ] }
self.class.tracelist.result(binding)
end

Expand Down

0 comments on commit c89fe90

Please sign in to comment.