lib/ferver/views/index.erb in ferver-1.2.1 vs lib/ferver/views/index.erb in ferver-1.3.0
- old
+ new
@@ -5,13 +5,13 @@
<title>File List · Ferver</title>
</head>
<body>
<h3>Files served:</h3>
<ul>
- <% file_list.each_with_index do |file_name, index| %>
+ <% file_list.each_with_index do |file, index| %>
- <li><a href="/files/<%= index %>"><%= file_name %></a></li>
+ <li><a href="/files/<%= index %>"><%= file.name %></a></li>
<% end %>
</ul>
@@ -23,6 +23,6 @@
</body>
</html>
<html>
-<body>
\ No newline at end of file
+<body>